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: 9377945 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 A667F607FD for ; Sat, 15 Oct 2016 20:54:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 974C529322 for ; Sat, 15 Oct 2016 20:54:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BB5B29344; Sat, 15 Oct 2016 20:54:24 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4121429322 for ; Sat, 15 Oct 2016 20:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755940AbcJOUx6 (ORCPT ); Sat, 15 Oct 2016 16:53:58 -0400 Received: from mout.web.de ([212.227.17.11]:56337 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753101AbcJOUx5 (ORCPT ); Sat, 15 Oct 2016 16:53:57 -0400 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: Cc: LKML , kernel-janitors@vger.kernel.org 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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,