Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965369AbeALUB6 (ORCPT + 1 other); Fri, 12 Jan 2018 15:01:58 -0500 Received: from mout.web.de ([212.227.15.4]:53046 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965081AbeALUBx (ORCPT ); Fri, 12 Jan 2018 15:01:53 -0500 Subject: [PATCH 1/4] gpio-stmpe: Use seq_putc() in stmpe_dbg_show() From: SF Markus Elfring To: linux-gpio@vger.kernel.org, Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <91234c1e-9106-ae5d-ebed-8e3d5f272c1e@users.sourceforge.net> Date: Fri, 12 Jan 2018 21:01:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:MO0VfkmAzjPOkgJ2UNmsaUWa8KZ32gLPBV3N/8tVwMMnww6DTpM wTSaEcMHEc7vywK5oeOhmqZxyQ++uvWfvKr47o2+7oq9tggqtinjeekyDtvTryUKEMIPi8N 1Y7f9hfr5YRpRoI4RhH4FjmG46sIcMM8vUBYYrBxeubK9ieF2jR54ZKJSm+ZjKOHiUEchhL MGvJprIoAF7c0LHcogA5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:5mFB3xRHgEk=:Ud2X3q9fTmDAYE7QUKuDN6 FNonFJ0vytY/NGCr/NeqrBVgMaUPgm3PFD/K8Own487WQFtGqjEDDftk+i9bZ+6n7qARWch9N /lbrFJQKgbO4DN11DuJ91YdBjpzpalqq3xMhfZBaMzb/CVYzHuMHMa4fZbjpROA2KaqJ9l/uc vq7tmxxgjAwifavH6uYcwwYjXho5YH9GWaM8B26TQjT0na/JVsOJjZFvqn0Qbe07KUlUCthTi fUFjWPZBgefmIqVOhTiXnNih7wKoi0h+EvU/GDtTqU904mPAoU4WIdvFuAJoHkNAW/Hc56RdH +4M1oTZQN3IfvrMXpFfsyAZiWJQt8hfJcwMleOTQuFOA6ThipeDg4gCnZ46j46ocvfakSJ/dK MVOz1cBHEkutdIQA1lt6QLLJrRmLr3RhhK0HA+IQkm7pAOQ7qccY4XUZAbTUbRUNenpFYmEna XHWhcWBx2HUJmx/aynJPol7y3jqFBH1Uljia8DaXLcHazwzs8sD4Zw4wMbvrFsR7e78xqafpB tyv3EC+FUwzsCyLVBTY/DOfkUcQh9UvqqQJrBs8z5tBccy3o4Xqo5BynlWScfZQtRQaTOdYTA n9UOGCyKG23wQyYKzudRxtxdVXpIrqP9FfA87huZLKPYkG42yJaijXezH7a84FQsXLpY/lVIw AHdonRnTakUbqOW2Y+XUsxqYjfe4u7yMrSEwh50y/quaMgkZEWdjUBElrN8t9ZRsar3K9lLTB 9+YwaMNfc0hKigShMpBKs1zGduO/VJjryXRe4XEfN+oclC8/LQ7e2NPJUp2wnV4tE01Ra9QDQ I21wytt2SeCwQTDoGBNG9wT2NIc97DOVf1Y4z+BXUDWeechADw= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Fri, 12 Jan 2018 19:30:50 +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/gpio/gpio-stmpe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index e3d048e65339..79858c6ad31a 100644 --- a/drivers/gpio/gpio-stmpe.c +++ b/drivers/gpio/gpio-stmpe.c @@ -350,7 +350,7 @@ static void stmpe_dbg_show(struct seq_file *s, struct gpio_chip *gc) for (i = 0; i < gc->ngpio; i++, gpio++) { stmpe_dbg_show_one(s, gc, i, gpio); - seq_printf(s, "\n"); + seq_putc(s, '\n'); } } -- 2.15.1