From patchwork Sat Jan 6 20:56:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10148023 X-Patchwork-Delegate: geert@linux-m68k.org 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 31623602CA for ; Sat, 6 Jan 2018 20:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4792895A for ; Sat, 6 Jan 2018 20:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FBC128963; Sat, 6 Jan 2018 20:56:21 +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 BD5AD2895A for ; Sat, 6 Jan 2018 20:56:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752674AbeAFU4T (ORCPT ); Sat, 6 Jan 2018 15:56:19 -0500 Received: from mout.web.de ([212.227.15.14]:58701 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752397AbeAFU4S (ORCPT ); Sat, 6 Jan 2018 15:56:18 -0500 Received: from [192.168.1.3] ([85.182.74.56]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MMW5u-1eXMTx09GQ-008JPZ; Sat, 06 Jan 2018 21:56:15 +0100 To: linux-gpio@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Laurent Pinchart , Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] pinctrl: sh-pfc: Use seq_puts() in sh_pfc_pin_dbg_show() Message-ID: <7e3a88a6-2ea8-1704-b7a0-67f1f4b4f3f6@users.sourceforge.net> Date: Sat, 6 Jan 2018 21:56:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Language: en-GB X-Provags-ID: V03:K0:uEDDs1pz71sRaNu2w2E6cMDPnvFheGun40HTOX0Scn7yfsjTRpx DUdg/5tw5x4PDvM3defFFQQxC3QwjFq5aIosVCKwob4dAG0hoYFzIanrX0ob+YQMD5VG1Px uqbdqrdanA6Jsvz3hAVf/fwHOg6g8o3Jp4zYhMCNVj0gKEnvQ822o0cqRtKf5faRWFeScXz vgP5E1qa+EFHvN0OwYLBA== X-UI-Out-Filterresults: notjunk:1; V01:K0:hjY5jORk0oU=:SDucplZMa3r0nrcpMIjWwT 3h3OaS50zDIfnZ+417erx9aGVDQ4BlmMeFxxvRMr1D6WJ0KYPQo0dQ6j/aW1vDIIs5sLytNne GvLXfjXCSmA5OhY2qjmT6Mnzr+7ubvv8qwEodbfL/VWktlb+fYxt63GD1oKJoc4WfnAAQ/ybZ NHq/RwcBm5i+cIKZJA7NAXADC+U/ebyq1hih50ScGsZMUBfmAzY0LAvVuOsTJXtIO6IwWoqht Y+SBOQfXSQtr+VNn71kKJBx0spoTq/7JR4toK/uKmMdgbVX7qYnzxz6s/FY5uKqqRYkUsK/ea ZRR8222FpfMsLYWxidG3yMhvcZABcoR+FZ3qv8zjNleBtE0BO/xkyY5rz4DtCp8akssJeb+lZ mzaDEnGxmwie4xjPq0vQlTALeckhsk7S1qNU31KCrS1opxyxtOWEv+YNaf+4aZSMFGfUeItEd sgN5y4ftmiGcZlCUz3ZqwEUE37dwHpK1ov8Xun6b77W2A3k7lYrnrCcGDTRTr5AVdj7Pv2YHJ NOpbgCpzWDy2vFdnI8D4N/qo0hYaaMQIbJfmz8nA/cEvLkIjbS2cvsn9vLMzmnmfwxhSraUFG D3XUOTkAnxvSez6TJ67H0dS8nRS9WL3wLqbjKcbM/VA7Cyso8qRy4IqbHE5MhnfaaicwHhNuv KtW3An8bBQFE+nuzPOES4TiDZqXYgwcyCsUXfiRZKoa0WObE8X39nmIgO2ybKX9DxwZyAygEf dpdE2OMAiMKgUKV8g2wqBsSUl/WDQaC2foQlYDWw/rz9M2M/Cu2rMjb7GVu06SPQJatndPpw8 60Vr9DW8Dh7cB5Apnc6y7rrtO83s14VU3Ut+hQqfNNYr5VUeP8= Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 6 Jan 2018 21:50:20 +0100 A string which did not contain a 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 Reviewed-by: Geert Uytterhoeven --- drivers/pinctrl/sh-pfc/pinctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/sh-pfc/pinctrl.c b/drivers/pinctrl/sh-pfc/pinctrl.c index 736634aee500..70db21638901 100644 --- a/drivers/pinctrl/sh-pfc/pinctrl.c +++ b/drivers/pinctrl/sh-pfc/pinctrl.c @@ -75,7 +75,7 @@ static int sh_pfc_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector, static void sh_pfc_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s, unsigned offset) { - seq_printf(s, "%s", DRV_NAME); + seq_puts(s, DRV_NAME); } #ifdef CONFIG_OF