From patchwork Tue Sep 2 02:48:00 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4822601 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2FBAF9F2ED for ; Tue, 2 Sep 2014 02:48:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5311220155 for ; Tue, 2 Sep 2014 02:48:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 53A1520172 for ; Tue, 2 Sep 2014 02:48:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752031AbaIBCsE (ORCPT ); Mon, 1 Sep 2014 22:48:04 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:59217 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbaIBCsD (ORCPT ); Mon, 1 Sep 2014 22:48:03 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NB900DFE6G1UKA0@mailout2.samsung.com> for linux-spi@vger.kernel.org; Tue, 02 Sep 2014 11:48:01 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.47]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id A2.E1.04513.1EF25045; Tue, 02 Sep 2014 11:48:01 +0900 (KST) X-AuditID: cbfee691-f79546d0000011a1-f6-54052fe1cbd7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 67.E9.05196.0EF25045; Tue, 02 Sep 2014 11:48:00 +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 <0NB900KNC6G0WW30@mmp1.samsung.com>; Tue, 02 Sep 2014 11:48:00 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Grygorii Strashko' , 'Jingoo Han' Subject: [PATCH 1/9] spi: davinci: Fix checkpatch issue Date: Tue, 02 Sep 2014 11:48:00 +0900 Message-id: <002101cfc658$4f627cf0$ee2776d0$%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/GWEr6KtXvbZQZQNOh58P4064PRQ== Content-language: ko x-cr-hashedpuzzle: AZ/m Fc70 F4LO Gjw4 LED7 SGAa SKXg T+50 YKPT ZVU3 ap1q cYFV g/cI lkeV wlxH wqc2; 4; YgByAG8AbwBuAGkAZQBAAGsAZQByAG4AZQBsAC4AbwByAGcAOwBnAHIAeQBnAG8AcgBpAGkALgBzAHQAcgBhAHMAaABrAG8AQAB0AGkALgBjAG8AbQA7AGoAZwAxAC4AaABhAG4AQABzAGEAbQBzAHUAbgBnAC4AYwBvAG0AOwBsAGkAbgB1AHgALQBzAHAAaQBAAHYAZwBlAHIALgBrAGUAcgBuAGUAbAAuAG8AcgBnAA==; Sosha1_v1; 7; {5139072A-77C8-4CB3-BE0E-37DB24F3889C}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Tue, 02 Sep 2014 02:47:53 GMT; WwBQAEEAVABDAEgAIAAxAC8AOQBdACAAcwBwAGkAOgAgAGQAYQB2AGkAbgBjAGkAOgAgAEYAaQB4ACAAYwBoAGUAYwBrAHAAYQB0AGMAaAAgAGkAcwBzAHUAZQA= x-cr-puz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E21VXLxCdB1y8wBWqmkUJaYUwoUCkgsLlbSt8M0ITTETdcC pjFC1zckCK7HyAANJKxjzJjw8BB7wRzuimf7F7E3MP7k6GLk5JAQMJG4efgtE4QtJnHh3nq2 LkYuDiGBRYwSl2++ZANJCAn8ZpR40qQGYrMJqEl8+XKYvYuRg0NEQFXi/yt3kDCzQLHErjmP weYIC5hLLH40gRXEZgEqWf/4KdgYXgFbiQO3b7BD2IISPybfY4Ho1ZJYv/M4E4QtL7F5zVtm kPESAuoSj/7qgoRFBPQkOmZegioRkdj34h0jyJkSAg9YJJ78aGaGuN9UYu+95WwTGIVmIVkx C8mKWUhWzEIyawEjyypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4Ih/Jr2DcVWDxSFGAQ5G JR5eiR8sIUKsiWXFlbmHGCU4mJVEeKt0WEOEeFMSK6tSi/Lji0pzUosPMZoCQ2Ais5Rocj4w GeWVxBsam5gZWRqZWRiZmJsrifMebLUOFBJITyxJzU5NLUgtgulj4uCUamCc6Nf4bZ54vdnW WdveiMseNhK1XuG3O8iT/ZjxNTt7t+wdS7gZr5TqCpj1/po/ddavuSsKrs09sb/voULSBvGW GIniavm7ZavfC69klAr89tdHx3rRfzvPstklSk+S/1juvvXvoMyzN7GzrzWvSdBcNTXuQdC6 jcVyFWkpeVdY95ybGdSdUJepxFKckWioxVxUnAgAjkWKLA4DAAA= 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: Missing a blank line after declarations WARNING: quoted string split across lines Signed-off-by: Jingoo Han --- drivers/spi/spi-davinci.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index 48f1d26e6ad9..cb20d6c482a6 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -167,8 +167,10 @@ static void davinci_spi_rx_buf_u16(u32 data, struct davinci_spi *dspi) static u32 davinci_spi_tx_buf_u8(struct davinci_spi *dspi) { u32 data = 0; + if (dspi->tx) { const u8 *tx = dspi->tx; + data = *tx++; dspi->tx = tx; } @@ -178,8 +180,10 @@ static u32 davinci_spi_tx_buf_u8(struct davinci_spi *dspi) static u32 davinci_spi_tx_buf_u16(struct davinci_spi *dspi) { u32 data = 0; + if (dspi->tx) { const u16 *tx = dspi->tx; + data = *tx++; dspi->tx = tx; } @@ -985,8 +989,8 @@ static int davinci_spi_probe(struct platform_device *pdev) goto free_clk; dev_info(&pdev->dev, "DMA: supported\n"); - dev_info(&pdev->dev, "DMA: RX channel: %pa, TX channel: %pa, " - "event queue: %d\n", &dma_rx_chan, &dma_tx_chan, + dev_info(&pdev->dev, "DMA: RX channel: %pa, TX channel: %pa, event queue: %d\n", + &dma_rx_chan, &dma_tx_chan, pdata->dma_event_q); }