Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753201AbeAFU4U (ORCPT + 1 other); Sat, 6 Jan 2018 15:56:20 -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 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-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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 --- 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 -- 2.15.1