Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965541AbeAMKJ5 (ORCPT + 1 other); Sat, 13 Jan 2018 05:09:57 -0500 Received: from mout.web.de ([212.227.15.14]:52801 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965508AbeAMKJy (ORCPT ); Sat, 13 Jan 2018 05:09:54 -0500 To: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] pinctrl/nomadik/abx500: Use seq_putc() in abx500_gpio_dbg_show() Message-ID: <88354751-0a61-4893-35ad-9a7c7337ebce@users.sourceforge.net> Date: Sat, 13 Jan 2018 11:09:27 +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:JIYBRy85X7Fzm3cGrBH2nwn3SNgI2hSm13aTR1HLDqCpnP8gmzj 6sf5q0onOhzWojFjBCNwMECuxJFY0W7214MEFHMAl+qMmdkODF2VCEm55eUdZslyNCpcOfW jRTXlKNdXOmchvdO+mtBh6bw3muwp0QPFnfyYik8JKcI+sMTyeTMNVCpd7CBb3Ztw06i8dK hupUIyGELQn/nCt7eljzQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:KbaDBhMCvo0=:addvYLUyLToiEMGJFgKQjA BDzzQ30aZR2lC+C6cRrepMhNd28nPar85JaVkRcUYOjwxnf2O9WJoxPW4SzazozAeUATlE694 Y8Bq691t776/pXNT54G8pHA0DJm2fz2wQvXAY5VYzeMtTChgzBOsox1puqg9VW0QUlovHX0mf twa3mQ33ZgWnfOgk6h5pvVqdKH0r7pLudbCjx1TKSOVA4bIouNT1AQ1Lm8YC9snYt3bK9yEQN KRMfI3O4yamqZWHAYyIk55g2aB5v/ePt5/l0B/F1MKf+U1Uy2QMa4EoYguJGIUlpmVzttVqJS JncytxoGOdZmrG7SBRF+z+3nhAB96Ri74EwRp7C7a2FPa7JB2sTSw8y5JIgq+NEIDMJaf2f3j fuwi6UN7vGQuMdhAqEpdvRFkSZ/HIkJvuKF5/gnNhUAvciL/pkjxbb+imOdwpeJmyf54Zv9p6 f1QYkR44tk4Te0EuQV1+dAb6wyiCGxp2eysE5D/HlwxZu4Ziz5sd8iSrXCUeRWARvu6GYuiih 6slPSqaA/gp/goj9766GZe1w89R+dLuRwMEX9FuKy+qQhVeVvhfWB5E0l6nWMQT9SJX/1iJf0 DgbEVZBy14ppu7bmrdFBX7ndTqpWHL1YBEtLA2YWhSDb6Sq2racnAGuW+XXomm261yMbvjVcc v+3p5g/O/GQbeA1mqj4+yoz8J9k+zuieWDAgVXRtCQ/oX7rmBshlLOGkmPbHjVFKUckK4SjIa hSDVQS8R2BF4Irvfu9Eb6zUjL3oH8Wu5uzPLHcj29tNZjQVExXRdZ9wM5CcrKuos2OyRhIllM 1eQwzC08kc+eGjM3inqVQKGN1x4yq611SSLMoBtMBSnHMo430c= 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 11:04:29 +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/nomadik/pinctrl-abx500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/nomadik/pinctrl-abx500.c b/drivers/pinctrl/nomadik/pinctrl-abx500.c index b32c0d602024..ed47ae5b0682 100644 --- a/drivers/pinctrl/nomadik/pinctrl-abx500.c +++ b/drivers/pinctrl/nomadik/pinctrl-abx500.c @@ -633,7 +633,7 @@ static void abx500_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) for (i = 0; i < chip->ngpio; i++, gpio++) { /* On AB8500, there is no GPIO0, the first is the GPIO 1 */ abx500_gpio_dbg_show_one(s, pctldev, chip, i + 1, gpio); - seq_printf(s, "\n"); + seq_putc(s, '\n'); } } -- 2.15.1