From patchwork Mon Jun 19 18:17:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aravind Thokala X-Patchwork-Id: 9797131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A239D600C5 for ; Mon, 19 Jun 2017 18:18:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 749262844E for ; Mon, 19 Jun 2017 18:18:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 685F028459; Mon, 19 Jun 2017 18:18:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 05BC42844E for ; Mon, 19 Jun 2017 18:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=scu06e1SOk37tIpFWk3m76iNeVaIvxMAS23WLhEhp3U=; b=NUA u7gKtWbC12eJk72HsIW8E+njSKiNphHRasfED08DUCoWz1Gvp4SF8BPBiRIHUHmwS9HqC/RkMSX81 aGBmOHhamr5mEHe7OkKrDiX7PMqD2b2T3CYiRnxBFERLztJ+hupNkG4+rWnHahqbb+W2VGtTeb5f6 3KQDz0f17QtbZDbQj3ddmEQxw6dmsTh4HT2WtQ+qYA6dexkxr421hKpSxDXq2xkC6iX4N2jNWCYFA /9Kxi6XaD+4TLcZW1CrVnZrnKfU6j0UwikEzu3WXkQ18I3WU/yrH8D8NxseL165TnnOtGt31J2QZL tCdqeeSq1usrx0ETDi6nVHmbJL48aGQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dN1G7-0005uG-Iv; Mon, 19 Jun 2017 18:18:43 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dN1G3-0005sq-GD for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2017 18:18:41 +0000 Received: by mail-pf0-x242.google.com with SMTP id y7so18579815pfd.3 for ; Mon, 19 Jun 2017 11:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=pNjvqo6bE7YpuN+5jMqqdMqQrRGtzaU0ntJ+TTf6HnY=; b=jKFUGOkXKDC6jHiUJ5hUdghO0jJ3UIWD8YEgkilZ5faQMVS5rNDQnZkDKGN7qYxwIf 57WoEx+xDc8BpnKv8aKhvLBG/nwtJ9Dx5iv2o/p/dI7CYEl5tUSoS7IVsgz8R1MD4O1Y 3oZ2XGorKRrz1Bh4pa5BXJVGjJHJ7HaaJhB6xrJ1FWKONydvIR7bxSjFVBYH6SxceKM9 +QnTX4xreUWqnjC4I5vvyoSZAfemxHgoxennNbb+wgr1iuCp0w3YEuAhrw0X1cFE+Ba+ o1kgnQ7zn+dajCRJnEy9WwkOyezC6WWVSC3NxYqEFXDzt30lMt4wWwZxJzTZi/+loPHC xZbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pNjvqo6bE7YpuN+5jMqqdMqQrRGtzaU0ntJ+TTf6HnY=; b=lMAaulA1eX8TMMMpYWhaawnFvEnrrZsIoWQps5S06D9lJxprJRR0btE72uxL3f7nY+ 3Eq58yz+Csy+SVfi2ffh5bp9I+BXMC2XJu3AjwHKRq3qZ9Xa8XUFOPUPqO9enCtpSIEy NrLDXoR0mXEzjS8vdoyJWsgj6qagb3UpnjTv8unV9NhZ+Z699OwhUuY6ZNm3/4tMPixp fTMmtQwzgIxvn2qhKq7Oe1d/LZTH0pX1JFtObabQkxc8q3Jm94Cblbv3HK6B0q1K49SN rARjCvWfFgzC83vJcs3qAGsbKwWNX2z2CYXzHuhuKwXxrfuu5CSK6QnI8poIEsBRq77S cneA== X-Gm-Message-State: AKS2vOy8lmzTYbMj1min/hV/cEmA2azieYMG7R1UoawYCFYUxKjZ55hj vlabN1A92OB3yQ== X-Received: by 10.99.137.66 with SMTP id v63mr5492474pgd.182.1497896298741; Mon, 19 Jun 2017 11:18:18 -0700 (PDT) Received: from localhost.localdomain ([183.82.198.149]) by smtp.gmail.com with ESMTPSA id s7sm25772884pfd.86.2017.06.19.11.18.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Jun 2017 11:18:18 -0700 (PDT) From: Aravind Thokala To: Mark Brown , Florian Fainelli Subject: [PATCH v2] spi/bcm63xx: Fix checkpatch warnings Date: Mon, 19 Jun 2017 23:47:48 +0530 Message-Id: <1497896268-5613-1-git-send-email-aravind.thk@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170619_111839_609276_FD8CBCE1 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aravind Thokala , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl warnings on the driver file. Signed-off-by: Aravind Thokala Reviewed-by: Florian Fainelli --- Changes in v2: - change the subject of the patch as suggested by Florian. --- drivers/spi/spi-bcm63xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 247f71b..84c7356 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -147,7 +147,7 @@ struct bcm63xx_spi { /* Platform data */ const unsigned long *reg_offsets; - unsigned fifo_size; + unsigned int fifo_size; unsigned int msg_type_shift; unsigned int msg_ctl_width; @@ -191,7 +191,7 @@ static inline void bcm_spi_writew(struct bcm63xx_spi *bs, #endif } -static const unsigned bcm63xx_spi_freq_table[SPI_CLK_MASK][2] = { +static const unsigned int bcm63xx_spi_freq_table[SPI_CLK_MASK][2] = { { 20000000, SPI_CLK_20MHZ }, { 12500000, SPI_CLK_12_50MHZ }, { 6250000, SPI_CLK_6_250MHZ },