Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965223AbeALUiF (ORCPT + 1 other); Fri, 12 Jan 2018 15:38:05 -0500 Received: from mout.web.de ([212.227.15.4]:59795 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965004AbeALUiC (ORCPT ); Fri, 12 Jan 2018 15:38:02 -0500 To: linux-gpio@vger.kernel.org, patches@opensource.cirrus.com, Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] gpio-wm831x: Use seq_putc() in wm831x_gpio_dbg_show() Message-ID: <85344479-907c-adf7-6ae6-6d6acff2c1b1@users.sourceforge.net> Date: Fri, 12 Jan 2018 21:37:53 +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:eEn3Wo1rxeA2ATQiLZL6RS2bzuToKoS8/hu0Q88eFID9nYI++fD J8QMG1RRT7d7DozGebSHUckPSvfd18sRN8mMyFwDM0RDtkOzowWFYTzx4P7rlIflyua8CoR my7IQ/kvaeLuVNmz48a5G+JR4iYwLXkXpYp5KqHGrRciaCP9Vxi6AplqIKMScMMNIIWYItr RPBwzA7v9QlKRT7AoFEhw== X-UI-Out-Filterresults: notjunk:1;V01:K0:a/d1uHO6U1w=:NoaxpRHeEd0G6OJ+FKJWA9 55HdxexO+R0UHMAu7x+PBrSDKv648Msb0Zhgbhg/mUIx9VMyExTVtC0ILsprCcF2L/e7gaPDb Nanmb8DS2UCWOC2+6DLlK4b8uefyJtyFFJ0nCfArdAtv/PGCikyfPCV3lYtaecF0eUImsOdxF QpRdVa6WRsWiEMFwsOAm+x94uDzLJ2b/vQYBoJr51gBSAmDO9tkmgAj/JRgTFIZkDzegQR5sm zwKBePts+27sH1fyjXXDFnG5RAIvWM/ArMx+Is+kHmvFlTbOuyALoaW8YQxptRt+QYZvYqizH QGs925YcUYHvbnYtZcFPAi5FW8qFFAwAP90Y9NRa180CJEOkqxFSr7Q+96O9FxCc9dFusXm64 Dx3p+1KmRr1t/JlpvIsj6Pq//ygvXiF0e0QZL6X3cfXdJxwFvBwHyeKpOFYjTqXYQOrv+K3oy t3f/jav9SMisAq4wLsvdw7FGhHK0g3bjj5RYNL0FliqxwqlZhI1yd4q6ZP+Fv7XsNL2Kik0NN 3cUwzGKkphcXYYEcHdGkTx8WWdHZVfIos28iOQRxjSia9AS3TkhCjq2y2bKKz640Q2QV1Z2g4 DpCylP75D3QYpsuIz+9b43WxmlnVV80rvF1oXMk39S74mn9K6ShMTbQVxJrCdir5AxXFfC9rh zxEPyde//HLESPFUxxXcT/upTEIUKP+jxi82xWeuGX/BNv9OUXjbYnr/8gY0hr0ToD0sNA7zX oPtjMwe6ZgWHM6pauDcgACxIb+CfwOczyibAtU9AZZ9ch6arFgxJfvBS4Ki5jp5AkAklXJUeF VWjLPP9mHrMCiW440S6EuS96si+DfLgNVPkCYSjzQe1IyO/wFE= 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 21:30:09 +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-wm831x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c index 938bbe3f831c..324813e8304e 100644 --- a/drivers/gpio/gpio-wm831x.c +++ b/drivers/gpio/gpio-wm831x.c @@ -182,7 +182,7 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) dev_err(wm831x->dev, "GPIO control %d read failed: %d\n", gpio, reg); - seq_printf(s, "\n"); + seq_putc(s, '\n'); continue; } -- 2.15.1