From patchwork Fri Jan 13 17:25:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9516081 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 507856077E for ; Fri, 13 Jan 2017 17:26:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DD6928763 for ; Fri, 13 Jan 2017 17:26:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3287E28768; Fri, 13 Jan 2017 17:26:19 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3F53428763 for ; Fri, 13 Jan 2017 17:26:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751234AbdAMR0E (ORCPT ); Fri, 13 Jan 2017 12:26:04 -0500 Received: from mout.web.de ([212.227.17.11]:62372 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750963AbdAMRZt (ORCPT ); Fri, 13 Jan 2017 12:25:49 -0500 Received: from [192.168.1.2] ([78.49.203.248]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LmcnP-1d1hTQ3Ix9-00aBSr; Fri, 13 Jan 2017 18:25:43 +0100 Subject: [PATCH 15/17] spi/topcliff-pch: Combine substrings for four messages To: linux-spi@vger.kernel.org, Mark Brown References: <1413e173-dbac-7a6e-09cb-2287300a335e@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: Date: Fri, 13 Jan 2017 18:25:42 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <1413e173-dbac-7a6e-09cb-2287300a335e@users.sourceforge.net> X-Provags-ID: V03:K0:cQyLVmJZ38hj+5FU1Aad62eY7U4WWAqgT1u7TpH6z7m7OdHZ2Yc k2SgdiEQOZWDAQO9naa0kIDAbXGc800oK/tvDRUVwzsh9XbjU+SgDSBvWg6lUMwCeB1BoQl BizFcuuM4CwDAABuXoeZ0itvVFTbwc/8d7Azujb9hh2JyytvqBl1eiWIJd8amEw0jSypx1D 5UBQFZ9VPDlyojIci018Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:dzlqtMAONNk=:RklSzzpwR9Xqpuz0w0kP/K 5fX+sbvpTpNHgdCjG1okM+mT26lVvle08sCp7wFGb8PEc3dok8fB9VrBZErY5H3hdq8p/6iPO qj2A7ScKnF/VoAxHQlf50cEQauw+25Lzc0dl2t7Pd1mhcugzu62V+TRkawYjMV5l12drVlmL/ ++/FzCL3bHvZQ6OOL4Y4pFXEKT7bu67WJmszqseLCFxGmhcmdsZaoBN3ipKKP97QiA0ILIumJ LiX8D8960gL5WFznAzW/8Dmvgi3WpDw1C6zSQRmRrQSW7uYZFIHRTt+6bSJnH1g4Wk3fmS6Dk 6MxFZyF3FWqWCTI4egnDHkaso6ASpZJO4/bo7tGyW/GV1TmnHotJS0HaT1/XvRSKbVnnO7lDb tQVTmsc2kTjS8xdCggtxf5tjdIPm+3tlwMW1ochoEkVvYnXuYlyGa3FuiwsCNoOKr/5JCFvzD mOq9/xIPvreHpg9v5egaieVsWsVVSx9p3Yq7NnFyBE1SJxUAk6gJcxksMiG5kLtzVlmcUfkZS UW4jkzKhneLyqoggI4vUP/Pa1o3GJ090JLCkS1RfjNJUDcKbOrzzQAo5NMV9GiO0SYdI7ZfvS C8+0nkBz8vSF0GgyrTl87lyG3me7obhYFkBdoYz5jvO4M6F4O3GGp7xyd/kooPjxaZwXIjrLG K6dJjRU1GG09bMhz47Ir+1653h5oFD8WKl9skAQQRdjhXPnfSyxN+MG98LUv2ScnQaHJe/HDQ f0LzyX8DxC6OI4pW3NFYIBlHE3juRRWKCBa6cZSDXJwAU0+Ju1KbMxO9vvIpHrFL30EaVDcot btqRUoG Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 13 Jan 2017 16:36:09 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/spi/spi-topcliff-pch.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index e4f1f66b751b..d36d42653087 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -621,8 +621,9 @@ static void pch_spi_set_tx(struct pch_spi_data *data, int *bpw) if (n_writes > PCH_MAX_FIFO_DEPTH) n_writes = PCH_MAX_FIFO_DEPTH; - dev_dbg(&data->master->dev, "\n%s:Pulling down SSN low - writing " - "0x2 to SSNXCR\n", __func__); + dev_dbg(&data->master->dev, + "\n%s:Pulling down SSN low - writing 0x2 to SSNXCR\n", + __func__); pch_spi_writereg(data->master, PCH_SSNXCR, SSN_LOW); for (j = 0; j < n_writes; j++) @@ -1179,14 +1180,16 @@ static void pch_spi_process_messages(struct work_struct *pwork) data->cur_trans = list_entry(data->current_msg->transfers.next, struct spi_transfer, transfer_list); - dev_dbg(&data->master->dev, "%s " - ":Getting 1st transfer message\n", __func__); + dev_dbg(&data->master->dev, + "%s :Getting 1st transfer message\n", + __func__); } else { data->cur_trans = list_entry(data->cur_trans->transfer_list.next, struct spi_transfer, transfer_list); - dev_dbg(&data->master->dev, "%s " - ":Getting next transfer message\n", __func__); + dev_dbg(&data->master->dev, + "%s :Getting next transfer message\n", + __func__); } spin_unlock(&data->lock); @@ -1231,9 +1234,8 @@ static void pch_spi_process_messages(struct work_struct *pwork) /* check for delay */ if (data->cur_trans->delay_usecs) { - dev_dbg(&data->master->dev, "%s:" - "delay in usec=%d\n", __func__, - data->cur_trans->delay_usecs); + dev_dbg(&data->master->dev, "%s:delay in usec=%d\n", + __func__, data->cur_trans->delay_usecs); udelay(data->cur_trans->delay_usecs); }