From patchwork Sat Oct 15 20:53:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9377947 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 541D6607FD for ; Sat, 15 Oct 2016 20:55:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4155529322 for ; Sat, 15 Oct 2016 20:55:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3386E29344; Sat, 15 Oct 2016 20:55:19 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C818D29322 for ; Sat, 15 Oct 2016 20:55:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bvVxs-0006E0-Kv; Sat, 15 Oct 2016 20:53:56 +0000 Received: from mout.web.de ([212.227.17.11]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bvVxm-00065G-QJ for linux-arm-kernel@lists.infradead.org; Sat, 15 Oct 2016 20:53:52 +0000 Received: from [192.168.1.2] ([77.181.180.27]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0Mb8sh-1cF70V1eNX-00KeD3; Sat, 15 Oct 2016 22:53:28 +0200 Subject: [PATCH 2/3] ARM-OMAP2+: mux: Use seq_putc() in omap_mux_dbg_signal_show() To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, Kevin Hilman , Russell King , Tony Lindgren References: From: SF Markus Elfring Message-ID: <88deac82-1339-330c-3561-abd30dbaf6b1@users.sourceforge.net> Date: Sat, 15 Oct 2016 22:53:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:vGA/5OzpFOw/SVFvXVHIO0yuMDYNUOXY+/jMlwtmWmSp8AVvmNj pV8Nppqi791ZZMcII8TqCmrsEKdwMy3tziCsZtNFjFOyGYP08Zl4EvHm6Whf6ij4Yj7dvVs JhLBxSVLRgI5VQQfmvpH1a+4Vc6cQ5DpStkYNRpNFMI8bMtvXzBg4IGMa/93f8igrl4u7NW gKki5/ZbtDMewd1G/Ol+A== X-UI-Out-Filterresults: notjunk:1; V01:K0:YIrxzAAhQbM=:efM5g2sg/K+sh8W4hRT3wl mQZl1Aggxqx0Pchl/VzIe6LjoWBLpf5/z/1CewYRhegwT4+Dwo8LAFmdclHRl9QFkB00x5lS6 xspkeZ9tZX3VtqkUUJhJnKXCtd2JRTN9MGAvCeO3ZP/QunxqZ9LCxsSNMVrxbLGXgq5sFHzK7 ehr/F7qeMAz575QawexZKpAVSjf3A+CX3GZyOvsqWnTLGUNpj1Zf3kmxWUFe5Fm6mLwq5eh77 UWv9lmy84TgzveaN2OvRJ58adjbtn0124d+JJpXTiF0ur1kRnrip1DUxVVSzkFIIuyS+c+9qb /dn77xgQk9rTBgqkrC/VhJP+QPL1jj9nG1yNdWt1EZUMaBRVgpYvfevUWmjeTXdViWSt2NarK dOwbUdpFrsVyhiMxHAQOJh4a+4c32fNltM5Me4rIrONXjZTTfRLPgb63b6PR8mxoEv8vxH285 0VCZj++s4tp6M+/zaXq5G59yLjJ0n0cAUCLPJpDXyEwR2VhBwrJMLQjTvOcRj1kfsWDxzyoxx PljfhTF8Q0bAb1hrTUuR/8wWbkTDXQoIXo4CTPReKfdaFq/zVQisZOUrFAWQutE9AuINa/UPP d5BcYW6U3ZMKPUcde84J37tWNnnomR4KM7ZHn6e3KQ0JaAkjZd4U+VcEBRhiyFvF9xalScOsW UdRpIDLkmiUb0/WFP+1NFgd/dWLsHtNEEaNJoEh2lbEWVz8tEW8WlOS5bwWehhA1dMppS/dWF 5D0KB/2PsxO59c9NBJn2WCJm/FZ79/KqAFFt0p1xKVpeATFYVj1X0nRfZEf7cJhGKHr8a98rb dhzhpQN X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161015_135351_331132_D35A8DE3 X-CRM114-Status: UNSURE ( 9.19 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, LKML Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 15 Oct 2016 22:24:29 +0200 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 --- arch/arm/mach-omap2/mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 4bdfa3d..e1fa39e 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c @@ -661,7 +661,7 @@ static int omap_mux_dbg_signal_show(struct seq_file *s, void *unused) m->balls[1] ? m->balls[1] : none); seq_puts(s, "mode: "); omap_mux_decode(s, val); - seq_printf(s, "\n"); + seq_putc(s, '\n'); seq_printf(s, "signals: %s | %s | %s | %s | %s | %s | %s | %s\n", m->muxnames[0] ? m->muxnames[0] : none, m->muxnames[1] ? m->muxnames[1] : none,