From patchwork Tue Sep 2 02:53:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4822661 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 825D4C0338 for ; Tue, 2 Sep 2014 02:53:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C3AB120176 for ; Tue, 2 Sep 2014 02:53:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E619F20160 for ; Tue, 2 Sep 2014 02:53:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbaIBCxN (ORCPT ); Mon, 1 Sep 2014 22:53:13 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:34924 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752365AbaIBCxN (ORCPT ); Mon, 1 Sep 2014 22:53:13 -0400 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB900IJJ6ONHR90@mailout1.samsung.com> for linux-spi@vger.kernel.org; Tue, 02 Sep 2014 11:53:11 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.47]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 4D.4E.04442.71135045; Tue, 02 Sep 2014 11:53:11 +0900 (KST) X-AuditID: cbfee690-f79ce6d00000115a-e5-54053117206c Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A0.A0.04943.71135045; Tue, 02 Sep 2014 11:53:11 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NB900G886ONT3A0@mmp1.samsung.com>; Tue, 02 Sep 2014 11:53:11 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Laxman Dewangan' , 'Jingoo Han' References: <002101cfc658$4f627cf0$ee2776d0$%han@samsung.com> In-reply-to: <002101cfc658$4f627cf0$ee2776d0$%han@samsung.com> Subject: [PATCH 7/9] spi: tegra20-sflash: Fix checkpatch issue Date: Tue, 02 Sep 2014 11:53:11 +0900 Message-id: <002701cfc659$08938bb0$19baa310$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac/GWEr6KtXvbZQZQNOh58P4064PRQAAKHIw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIIsWRmVeSWpSXmKPExsVy+t8zfV1xQ9YQg+ZFxhZTHz5hs7i88BKr xdJ9q1ksGj/eZHdg8di0qpPNo7f5HZtH35ZVjB6fN8kFsERx2aSk5mSWpRbp2yVwZSzo7GYs uM9RsXLpFOYGxknsXYycHBICJhJXl/UzQ9hiEhfurWfrYuTiEBJYxihxfPsNZpiiP98+MUEk FjFK7H3Qygrh/GaUeH9tI1gVm4CaxJcvh4HGcnCICKhK/H/lDhJmFsiV2L+7gwkkLCRgK7Gr qQYkzClgJ9E9qQvsCGEg++ellYwgNgtQ54nXs9hAbF6g8ueL7kLZghI/Jt9jgRipJbF+53Em CFteYvOat8wg4yUE1CUe/dUFCYsIGEncfX6dGaJERGLfi3eMIBdLCJxil/i5fy8zxC4BiW+T D7FA9MpKbDoA9a6kxMEVN1gmMErMQrJ5FpLNs5BsnoVkxQJGllWMoqkFyQXFSelFJnrF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9hXHbdTqY7w+ 6DXsL+5+Nf+C1J6CM1W5xu6JN2oY/r+W2rnr8h0HNstzTxynq+56tOblqyUuCtclFvLu3+I0 OazZrN5yXdOpvb/Nch7J3b7xJUVkzaIXD3K3XutS+zshlf/n4sQPwTJJDHNPtR9pTNm1S/lf Qen07/9VxPeLdDw6mMOjxFKckWioxVxUnAgAW9pvBg4DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix the following checkpatch warnings. WARNING: macros should not use a trailing semicolon WARNING: Missing a blank line after declarations Signed-off-by: Jingoo Han --- drivers/spi/spi-tegra20-sflash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi-tegra20-sflash.c b/drivers/spi/spi-tegra20-sflash.c index 3548ce25c08f..cd66fe7b78a9 100644 --- a/drivers/spi/spi-tegra20-sflash.c +++ b/drivers/spi/spi-tegra20-sflash.c @@ -99,7 +99,7 @@ #define SPI_TX_TRIG_MASK (0x3 << 16) #define SPI_TX_TRIG_1W (0x0 << 16) #define SPI_TX_TRIG_4W (0x1 << 16) -#define SPI_DMA_BLK_COUNT(count) (((count) - 1) & 0xFFFF); +#define SPI_DMA_BLK_COUNT(count) (((count) - 1) & 0xFFFF) #define SPI_TX_FIFO 0x10 #define SPI_RX_FIFO 0x20 @@ -221,6 +221,7 @@ static int tegra_sflash_read_rx_fifo_to_client_rxbuf( while (!(status & SPI_RXF_EMPTY)) { int i; u32 x = tegra_sflash_readl(tsd, SPI_RX_FIFO); + for (i = 0; (i < tsd->bytes_per_word); i++) *rx_buf++ = (x >> (i*8)) & 0xFF; read_words++;