From patchwork Fri Jan 13 17:13:32 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: 9516067 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 C6879601E5 for ; Fri, 13 Jan 2017 17:20:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5752286E3 for ; Fri, 13 Jan 2017 17:20:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA59128763; Fri, 13 Jan 2017 17:20:38 +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=ham 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 6159D286E3 for ; Fri, 13 Jan 2017 17:20:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751205AbdAMRUY (ORCPT ); Fri, 13 Jan 2017 12:20:24 -0500 Received: from mout.web.de ([212.227.15.14]:55884 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750964AbdAMRUX (ORCPT ); Fri, 13 Jan 2017 12:20:23 -0500 Received: from [192.168.1.2] ([78.49.203.248]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MVLY6-1bwqu33rFW-00Yl6M; Fri, 13 Jan 2017 18:13:34 +0100 Subject: [PATCH 05/17] spi: fsl: Combine substrings for two 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: <0ff54345-a877-fe39-0aa2-a3db617fba38@users.sourceforge.net> Date: Fri, 13 Jan 2017 18:13:32 +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:k4jAEvnZOiPDFst9ZeNFiEKaoxHAp6C5vs3fLg9oho7s08hfPW6 02KoHeTxO2//2OsDHXqXcJQoF2cndnbE/7gyiwg0TATNo1q+PzvmBR37jTClfWO6umtUuHA a6IzZSfGF5ufW9d5qKUNwRo4tc+OwOynkZ5F6UFRmdgTwel+O21QxaRiY4tOibRMkWh4ca3 PWNNA6LI4xY9kXOuawsmQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:ujEY5RgwTyg=:0aCI5vJ0SzGgRUMsuHybMT ZGxp4AYic49MKCkzonmgbv+JvBbKK/Xeo11V7Rai8xEaeH8rY0LPXbfDGtTHOi9yZNvf0AKih HvkBsmgafypFQ9zlCVxDlJU1UInuYT5SJLohoCrg402iqkbeS7/BtxZZiqJAek5L4pPA68ciS ND8eiSnnzDxPH+cziIkcVfWzLCFDlVB3P5XO3de+YnGvfie00bPftBtAayEGUOmQImxxVgiLq GbseGOBUZqGYjhbmavJ+0EXT+maiOAyG98Jz2iG+iT+5j5Aa11tYlgA282+/E7DPPrJJTtMB1 Gq+tHyMgBsj78BynF8vzagmItskUNZ2HPTazqNAf2KwpcNLJaN9OU1Z9h6toyWQ5SuWOIPDIB DBEfhFYWY1eH2PqddMRKdtwUDDwsisSglvQBWqT5LXvtz2evTX837ftgqzHIjDqXOQQd16P0D iF71zJylxh66ntkqrVRzBF9mr5CA9GL7q17cAOFVC2YctFlzkRMq11PSp+bz+k66KEkdL8OFi bIzPnp5lHiWrKg2WWjP61B1FITY1bnCABdPpYMzcKgsQEe83X2+SDVJDd+KMeamoYEduZG6Cx bulFhS9Vqf1jVjQ3m+tpr/81eZbvsHH75VARV9wActB0Se8ahLclEyTmAV/DFZI3BCpGUkSF+ LGgGGnuug6aDHc4TKXHNu69uw5oTd0MkffKdjvqvrilBw5U8F6a0ipEoA8FQxzq/3dZSCwKWJ 8g8U57tKYRaEgys6T+yMNPP52dOLR2XFR71nQwJr1JgxLOGk3czjBkotFN9fC1fSCcfrc36Ed l5vUpCV 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 13:50:21 +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-fsl-spi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c index cdee556037f9..0fc3452652ae 100644 --- a/drivers/spi/spi-fsl-spi.c +++ b/drivers/spi/spi-fsl-spi.c @@ -267,10 +267,9 @@ static int fsl_spi_setup_transfer(struct spi_device *spi, if ((mpc8xxx_spi->spibrg / hz) > 64) { cs->hw_mode |= SPMODE_DIV16; pm = (mpc8xxx_spi->spibrg - 1) / (hz * 64) + 1; - - WARN_ONCE(pm > 16, "%s: Requested speed is too low: %d Hz. " - "Will use %d Hz instead.\n", dev_name(&spi->dev), - hz, mpc8xxx_spi->spibrg / 1024); + WARN_ONCE(pm > 16, + "%s: Requested speed is too low: %d Hz. Will use %d Hz instead.\n", + dev_name(&spi->dev), hz, mpc8xxx_spi->spibrg / 1024); if (pm > 16) pm = 16; } else { @@ -763,8 +762,9 @@ static int of_fsl_spi_get_chipselects(struct device *dev) ret = gpio_direction_output(pinfo->gpios[i], pinfo->alow_flags[i]); if (ret) { - dev_err(dev, "can't set output direction for gpio " - "#%d: %d\n", i, ret); + dev_err(dev, + "can't set output direction for gpio #%d: %d\n", + i, ret); goto err_loop; } }