From patchwork Sat Oct 15 20:52:06 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: 9377937 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 08D2B607FD for ; Sat, 15 Oct 2016 20:52:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC6EC29344 for ; Sat, 15 Oct 2016 20:52:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF77929355; Sat, 15 Oct 2016 20:52:55 +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 8711E29325 for ; Sat, 15 Oct 2016 20:52:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755696AbcJOUwm (ORCPT ); Sat, 15 Oct 2016 16:52:42 -0400 Received: from mout.web.de ([217.72.192.78]:58662 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754009AbcJOUwl (ORCPT ); Sat, 15 Oct 2016 16:52:41 -0400 Received: from [192.168.1.2] ([77.181.180.27]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0LecRm-1ckXf52a10-00qUYV; Sat, 15 Oct 2016 22:52:09 +0200 Subject: [PATCH 1/3] ARM-OMAP2+: mux: Replace three seq_printf() calls by seq_puts() 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: <42ffbac1-4edc-1afe-4b3b-8552a7fa8c47@users.sourceforge.net> Date: Sat, 15 Oct 2016 22:52:06 +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:YiJlSQBc2Se1+Q60HXPnERhwB4h7/18fCqkPJNpbgAPd1hy3r10 vPHjFzy4USET7sFKYTVgAxF7p6fU3HC7V3GGcXnKxPmoz8irSpGxMWPFU3itmZADks/ywPS JQoyEkvxZcRUH0LH+YTx32DU51ckC8PST0A6XAuG0rjniT1ntyJgitHZvSBDfWXEwzLpjtv eB1Dj1NFUtyNp1b4J9M/A== X-UI-Out-Filterresults: notjunk:1; V01:K0:c08X24KbGuM=:3FReoZjyRcdWfbk3G5vP2E J0RtPKoflkfwHrKCgj/j7OgwtlNJK+T9cfjvmrE4xiHlHU160KllFAdLZjLiX9yQayAQMTYZA xEnK1vTTAq9/WpY7Qn2Omn+z/6oepXsoYvVRRQiJX42YiLUzYs2kjQm1dvaHYf5Xp7bkhTWxK 5b6oIVvbZ2dQZ5p73ptMOCwz0dt+VB/s+957WrwvpOMeXWpL7tYlAiVf/gk0HiEQiNkM1xPgX Wdj3XW4T+CwZ57c6EGJEy3jxgDzXozetidSUrSvh8l4sGaOa2Fq3/9xk4ND8qRusyZT4ar1WT doxVPS8Bnm9Um9J0uc1PTgLLGL2EL8RdMzAndD5Gqz2KMDznZ+11wsCgBezpr9xi2Vjwl1JUh KTirmQrvwYSs9wIVvz9hVy4frdcVB2w03ZwdXxQHVNTzAHQCrz4+4gcDzf8Urd86ynfa2Cuuw iZ4DXmss1mCS2p7LaH/DJoJwUDR9JOupjrrpwK91j+5N6sv/nHDz0xRub0cqZjzw1jBzbaoB8 LzmFQ7EM4mLq7Wfn6tLbEFGS30sNgc00VOO77go5qwCOyyBjxXQHEZ68biZVSY817itXQGjRy OGV8rOJ8rmnS336wCyw4mw/XT7m8KdoNEbzOVysxv5ZzLK0YoDKXxfSHu1U6tTB6iMi3Se2U7 2yeiyM7Zjjra9jriYDimcypgAQw3WjeRmNQ1PhqQULiGmm4tkp5yQjNV8bXO/cziBLFA0l2Z/ 7sDHNL94nEFE2oKcrzBIa5S35Cw9aR29PmvvcRV7F055Su10z2jGmya6ARHxXdAvRLSyoPPbl 0Pj4E5T 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:22:09 +0200 Strings which did not contain data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/arm/mach-omap2/mux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 176eef6..4bdfa3d 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c @@ -561,7 +561,7 @@ static inline void omap_mux_decode(struct seq_file *s, u16 val) do { seq_printf(s, "%s", flags[i]); if (i > 0) - seq_printf(s, " | "); + seq_puts(s, " | "); } while (i-- > 0); } @@ -602,7 +602,7 @@ static int omap_mux_dbg_board_show(struct seq_file *s, void *unused) */ seq_printf(s, "OMAP%d_MUX(%s, ", omap_gen, m0_def); omap_mux_decode(s, val); - seq_printf(s, "),\n"); + seq_puts(s, "),\n"); } return 0; @@ -659,7 +659,7 @@ static int omap_mux_dbg_signal_show(struct seq_file *s, void *unused) partition->phys + m->reg_offset, m->reg_offset, val, m->balls[0] ? m->balls[0] : none, m->balls[1] ? m->balls[1] : none); - seq_printf(s, "mode: "); + seq_puts(s, "mode: "); omap_mux_decode(s, val); seq_printf(s, "\n"); seq_printf(s, "signals: %s | %s | %s | %s | %s | %s | %s | %s\n",