From patchwork Mon Apr 24 20:23:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9697177 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 BD1FF601E9 for ; Mon, 24 Apr 2017 20:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B22DA28066 for ; Mon, 24 Apr 2017 20:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6CF728419; Mon, 24 Apr 2017 20:24:35 +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 A57E2283F9 for ; Mon, 24 Apr 2017 20:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1174551AbdDXUYO (ORCPT ); Mon, 24 Apr 2017 16:24:14 -0400 Received: from mout.web.de ([212.227.17.12]:62209 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1174330AbdDXUXP (ORCPT ); Mon, 24 Apr 2017 16:23:15 -0400 Received: from [192.168.1.2] ([77.181.233.174]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LlF9O-1cS23C0KPe-00b1jL; Mon, 24 Apr 2017 22:23:04 +0200 Subject: [PATCH 7/7] HID: picoLCD: Replace two seq_printf() calls by seq_puts() in picolcd_debug_reset_show() From: SF Markus Elfring To: linux-iio@vger.kernel.org, linux-input@vger.kernel.org, Benjamin Tissoires , =?UTF-8?Q?Bruno_Pr=c3=a9mont?= , Henrik Rydberg , Jiri Kosina , Jonathan Cameron , Srinivas Pandruvada Cc: LKML , kernel-janitors@vger.kernel.org References: <2d526d72-a740-367b-04a9-ed698435f8ed@users.sourceforge.net> Message-ID: Date: Mon, 24 Apr 2017 22:23:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <2d526d72-a740-367b-04a9-ed698435f8ed@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:6uLUaEiFqRWVCvZBcPcwwq0J9kNYvyYTb6nkWHnLaBdKX7uhacw OjsiX3dOYuRcOs6OZLCoyJ71WhueaILPQxUlTkO7bHnRRnXuaf4279CuWcPH63Hl/5HdIJ0 RhrNhyhA97G10cGCfaNhbL5ZPs0056UXz66OZ1CR6zGHpOFouoWzHIDI0XEqXDHxeVaCPDG lsQwMaiaOw/zdInY6naUA== X-UI-Out-Filterresults: notjunk:1; V01:K0:EGbwSXG+EbI=:9AJtWw04opGK1XYETfNv5H UcMrRSrCbZqHxFANvAwahly0AIQTn99CSf4dTBTScX3ddrTE2Exuo3+Hm1l2KK9ws2cSJDHSQ ocGR0CQU7x0vSb/h8wqeVYgCLnYU9Tm8SjAjuDDCJZ3yZIHLtaDeeGJpzQ0HF8C128jgispsu /ZA6ggQnG2Vm3IggTU20xXlbI8uPau6Utyw7EPtaQC+B2JPOphOQ8p09Rjp7m2hpYo7Elxk3H VMIErLab4ZjHKSa+eKMFT9qsI3Rv1CakmcuAN111YX3ovZrmRWS+G+ZQFs+aqAUYH3fd6BRWk 0AnWR/wyZxsE+2zCAAVcwFHXRz8y20H1aAn+CsR4Mi4ZsNt7CqTg5lBTyU2/Xgesuc4/bgbIq gsh678+DNStyGWEoCZGo1MSvCoT9wEbydklYfSzpB8cUwJytiqj60nC/y4e0MXrth1n6aujoT OTYKX2QYN9N5ryeBbXshWGm53crKRhXfQMRQVGlkODgXXzmwPSNEFHnZGmidU+XYu3PbZG/hd YtAg7WtO3QaqnBfeKMVUUYw09zfkk/NSs99UnJT/u5jKedibyXQ5V65FAfkLYaUPtIN7TURwt WcN6jhvF7t3+juFdy+gOaFrls5HCgU//9goQ7v6ctzHPNkbUf4gFnztYS4TGFbxGeewz21T8y pu6bRn+MRpecuFIhdWCdAEGNyjjsrMF84KJhHL186ANEGCBD3Wm62/NB9clW9aVkd4Toyb3K2 7bNaUq+ZJgJcw9kOBFKtIv14Rm6tTKi598yw2phDHJNmlTQbXCLtpXaqLK5RK+ium10J7P/YJ YrSX4ms Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 24 Apr 2017 21:27:42 +0200 Strings which did not contain data format specifications 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 Acked-by: Bruno Prémont --- drivers/hid/hid-picolcd_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-picolcd_debugfs.c b/drivers/hid/hid-picolcd_debugfs.c index 3e0feb4bb538..975f36601d59 100644 --- a/drivers/hid/hid-picolcd_debugfs.c +++ b/drivers/hid/hid-picolcd_debugfs.c @@ -33,9 +33,9 @@ static int picolcd_debug_reset_show(struct seq_file *f, void *p) { if (picolcd_fbinfo((struct picolcd_data *)f->private)) - seq_printf(f, "all fb\n"); + seq_puts(f, "all fb\n"); else - seq_printf(f, "all\n"); + seq_puts(f, "all\n"); return 0; }