From patchwork Thu May 4 17:21:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9712355 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 C72A560362 for ; Thu, 4 May 2017 17:21:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B120E28404 for ; Thu, 4 May 2017 17:21:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5ECD28688; Thu, 4 May 2017 17:21:59 +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 4FA6628404 for ; Thu, 4 May 2017 17:21:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755458AbdEDRV5 (ORCPT ); Thu, 4 May 2017 13:21:57 -0400 Received: from mout.web.de ([212.227.17.11]:58919 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752997AbdEDRVz (ORCPT ); Thu, 4 May 2017 13:21:55 -0400 Received: from [192.168.1.2] ([92.228.166.245]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lb1wz-1dlxiN4BEv-00kid1; Thu, 04 May 2017 19:21:47 +0200 To: linux-media@vger.kernel.org, Fabien Dessenne , Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] [media] bdisp-debug: Replace a seq_puts() call by seq_putc() in seven functions Message-ID: Date: Thu, 4 May 2017 19:21:45 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K0:wWdkVmhiGZUqgpvSNeIAUFGZfdMjr/Z1NGlcNJPsvX+gJQkHj84 7EjMCIVDn5t1XXrsJdEkU0VoooGYc1oXri8fTDE7plx1PlCSCV2wEiue+EfAUbj93YCyHf7 TzCBIjCKj0TUckEVKM3ey2hAh0efoAxZzNnMKvYDAWO2kEgZj/PXnB5jjAAxZ4s5VNr6Cg7 nzGH8sAbUDVx43l9tZkDw== X-UI-Out-Filterresults: notjunk:1; V01:K0:3EOfn+jT0KE=:bfCU2wR9iEy2WAjUIS2JTQ t2PJIEV8qDS91rxsCw/NPTeG2m2wHc7EXz3VsNzPfgn8nb0I+Mm9ubEKQAvq8OfQ1geLGe1WT PtJ+AvEXOHl23pn9c2qG55+UmAcEsVZPgLubVHe/rLsE3PZjPoO37K3u6+1BDYRDqgKQris5E 58V4cHEiXkLn1ZR90CMzdCVTckDflOSYmxawTl6K4mewp/upxMii9r4glTlrFkQiDWf+sa2/e sS/ZrwcM6370szqvvedbFEUcNj4iLWFRBNb2mXM3u7CfslKYhV7uP7QMfRD5jBGwEKAOek+W+ Fjq43b3gxAigBJR5ChRvKhP3WP5bdnwktr8e9P7g1qA9qOAv4K0Rt1lP18gxhR7LoxOWYddyN HI+wCZp9huVEUQJeNrVo/yWRMPcfwMMqmh1B3P/LK8bwiQjeK10sQ5PtF7MncUyTxKzxYMLaW P60mbODuFdL+ZEsWKIephNTv4PpLENocU/x8sslP6a6iJRIbuUNbHDJfKF2+C8uC6ND1umVzR oDG0clDco8gt7kO26DceMD/J97msK8omP31y2lDyo+aKd2TnsN1gFeHF9XrmwH1ezD8UxeBsq DpFAGDZnao0AnyyYnqL9zc5Buz4v4/4NR634dbd49j/ZTEcP+bpjlwXfnqmIpYLeNRoqAM06E uUL6u+mBpr1wBqrb6Aqye5P6k+oI/ayVtlne2pkv5z3zYvpwEsglGocjBahshiRFXEFRLznzJ RWGNDHjxGP4Cz3uGY7sg0Ov6fMfhH11ZP0936af3I+5RdyUK4sah2YkWFHoIYA/sFVxsBAXl5 5QBfyOZTlQEHyZ7hflatOktiBjHuw== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Thu, 4 May 2017 19:14:15 +0200 Seven single characters (line breaks) 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/media/platform/sti/bdisp/bdisp-debug.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/media/platform/sti/bdisp/bdisp-debug.c b/drivers/media/platform/sti/bdisp/bdisp-debug.c index 7af66860d624..2cc289e4dea1 100644 --- a/drivers/media/platform/sti/bdisp/bdisp-debug.c +++ b/drivers/media/platform/sti/bdisp/bdisp-debug.c @@ -104,7 +104,7 @@ static void bdisp_dbg_dump_ins(struct seq_file *s, u32 val) if (val & BLT_INS_IRQ) seq_puts(s, "IRQ - "); - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void bdisp_dbg_dump_tty(struct seq_file *s, u32 val) @@ -153,7 +153,7 @@ static void bdisp_dbg_dump_tty(struct seq_file *s, u32 val) if (val & BLT_TTY_BIG_END) seq_puts(s, "BigEndian - "); - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void bdisp_dbg_dump_xy(struct seq_file *s, u32 val, char *name) @@ -230,7 +230,7 @@ static void bdisp_dbg_dump_sty(struct seq_file *s, seq_puts(s, "BigEndian - "); done: - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void bdisp_dbg_dump_fctl(struct seq_file *s, u32 val) @@ -247,7 +247,7 @@ static void bdisp_dbg_dump_fctl(struct seq_file *s, u32 val) else if ((val & BLT_FCTL_HV_SCALE) == BLT_FCTL_HV_SAMPLE) seq_puts(s, "Sample Chroma"); - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void bdisp_dbg_dump_rsf(struct seq_file *s, u32 val, char *name) @@ -266,7 +266,7 @@ static void bdisp_dbg_dump_rsf(struct seq_file *s, u32 val, char *name) seq_printf(s, "V: %d(6.10) / scale~%dx0.1", inc, 1024 * 10 / inc); done: - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void bdisp_dbg_dump_rzi(struct seq_file *s, u32 val, char *name) @@ -281,7 +281,7 @@ static void bdisp_dbg_dump_rzi(struct seq_file *s, u32 val, char *name) seq_printf(s, "V: init=%d repeat=%d", val & 0x3FF, (val >> 12) & 7); done: - seq_puts(s, "\n"); + seq_putc(s, '\n'); } static void bdisp_dbg_dump_ivmx(struct seq_file *s, @@ -293,7 +293,7 @@ static void bdisp_dbg_dump_ivmx(struct seq_file *s, seq_printf(s, "IVMX3\t0x%08X\t", c3); if (!c0 && !c1 && !c2 && !c3) { - seq_puts(s, "\n"); + seq_putc(s, '\n'); return; }