Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934229AbeAMLso (ORCPT + 1 other); Sat, 13 Jan 2018 06:48:44 -0500 Received: from mout.web.de ([212.227.15.4]:58188 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754784AbeAMLsm (ORCPT ); Sat, 13 Jan 2018 06:48:42 -0500 To: linux-gpio@vger.kernel.org, Baolin Wang , Colin Ian King , Dan Carpenter , Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] pinctrl: sprd: Use seq_putc() in sprd_pinconf_group_dbg_show() Message-ID: Date: Sat, 13 Jan 2018 12:48:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:dVyxiiEUPJ6DcfAJXfachj4PGEFLe1Ln7gHx5HKF+bDSoztJ7Lj 8iAcsv3bWrUGt3G6TBqVquhFzpTTSdeTF99dwC21lOEgNSB2+56PUwt4Paw0Qd0g3d8Nr3d E+xp0XxCFW/o+GW/L2pPKCUJBrCuTzNuWNWdOZQkWXX272FU+F0ejqyluvd51UfGOdUHA82 FHLBa9JBijdvmHRYpB50A== X-UI-Out-Filterresults: notjunk:1;V01:K0:w5gmyJl0gq8=:LHx5ZEuN65CM49y5M9+56Y 593R2wOTQVouzvwXsUaVwUhLYwAH3r/mQUXpFqRspbFtCaQw/qrgqXuFjcKKHynanzjSW7X+b zWuAQL1LZM23o36kO1M8A9b5jsPtMNUo4toRrza95E+9I9ptijDBT0dNSBH+b41ooo1SDkGqW aO355Hwysyv3W6OqyMEkxzNDWEBCNYRXEN25L1dsikwy6m5SkyNO54QJbem0ivkLh7NOwwTYB d/mxcrpyQMsCHMBtXe+2xpZyzO0dd6k+TajU1wsh+Cm8HN52ETdDyUfym4BdPM3WtmHzzwKsi NsHu89W23ll1uktACVa06Wd4BgO9j9o/gKsy61SQq7I7+H5Z8riYdX1mjmtoEIOOl+OLAsMv/ hnEE8U6swJ5zjGZbvG9yTrKV7zsTYe5OIJ33SsuFtHUhzTYZJ3qhcXCZXMHgcOLuxdKDLB4lP TepqgvtuXIyhFdC4mC88KHijZD76siruWVxGkuTLja3d7G/Sk5D8Py1SxKAGl0tiNJ8VNsXLJ +3+pR1MfpI1FFmEZVc9yj3W79YpfPiAhBdYfi3t5uRhksEWOvTxGgGL0tQTFBFNepfAbvrwB8 +d5sgNYdy1i/lb5/RFYz62BlDyIt34qLce23s6/6znv77snD/TRwqjo31HgWjvonAzUibTWWj M4+eG/MpQao+1LI0fjd3STwjW/iwkqSmwh2RL96R3D+3jjeFkiazCIMejFSBEWULfc8dDbFGt NuZF46zbkeZ2C2x7LjEveuCkZdfWtXEONCyVFj3fQhKYz0XMQrcWCUaR0HjMgFarbXj1zSx7t gRlOMLl2hq9sdUfjRuWm7RKA02XyfwWPIP3iGK2Br4s/Im5hnc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 12:42:14 +0100 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pinctrl/sprd/pinctrl-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/sprd/pinctrl-sprd.c b/drivers/pinctrl/sprd/pinctrl-sprd.c index 63529911445c..ba1c2ca406e4 100644 --- a/drivers/pinctrl/sprd/pinctrl-sprd.c +++ b/drivers/pinctrl/sprd/pinctrl-sprd.c @@ -818,7 +818,7 @@ static void sprd_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, grp = &info->groups[selector]; - seq_printf(s, "\n"); + seq_putc(s, '\n'); for (i = 0; i < grp->npins; i++, config++) { unsigned int pin_id = grp->pins[i]; -- 2.15.1