Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934235AbeAMKtH (ORCPT + 1 other); Sat, 13 Jan 2018 05:49:07 -0500 Received: from mout.web.de ([212.227.15.4]:64776 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933432AbeAMKtF (ORCPT ); Sat, 13 Jan 2018 05:49:05 -0500 To: linux-gpio@vger.kernel.org, Linus Walleij Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Subject: [PATCH] pinctrl: pinmux: Use seq_putc() in pinmux_pins_show() Message-ID: Date: Sat, 13 Jan 2018 11:49:02 +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:GQ0LJ/SeDZD3Qr8xzCi6qJBZ0BSKxZSXSfr1oUbRIBsAUD/R3lj tXyoRtq2dbC9DGB7ZE+WsKnexIlhSAFcjUNlqL9JkNSo9M+yHKuP3/j4Zq+mFVXW+BBHS23 ViOWvxC/GZAyKDlbNdZ3NVsRo4E4mI6nJ+NH7ik66+2M+gGZQXDWi/kne2iSBO3G0jn5QdN lLHrkRm9FwDbt6miEcMtw== X-UI-Out-Filterresults: notjunk:1;V01:K0:e3ny3CQB7zI=:xVc0s+gXsuaA7Ko4b4owl1 R+ghF6rcJCGTHxhIZvpo9DXhXPaTRrgD33VftwxWATxAeqlj9pGFUCHtIOu9OMDWarTTL8Df6 EsbdS01SfLVCJvZ7L8gM1MSnhoBa09OWgAmGMDikSf9bFvLjQ01sB3eWyMXlsmN8lGrRRDLSx 3gJaiwgeKLxLgD+Q3UFPUDo3rsmSd2thdnR9fwwRfO2BwcJ04FE0LPQ02hvxQz8IL/heqZReo 1yD2qQz8E4JzgzVxNeuKis6h6n0XKrMGyZyiNLJ668XQO74bYbnqLKG8+mVAuJpq5mg9G7HUM /r8KWGpPdl0kAoCL5t3ZJO7/9LRkkVHDM+vku1aASCt3Zeyo/UI6LYelN8gwsShR2wjkuO9sT E4GRm8KmQ28JocARZanKBpZK13ivnR4oDkSIiNTw4rRTkgIbnXBARgVEAKDI0Ffmzu357my/T oXyeRk2bGGocqzo5LPjcbKnQQfg1dY573Yn2Qw69hrsX3JxnRPQFdvAEhvV5qoogbjqzXbdcI bT498Dg9RPd+QSeNVIlyPlzAIuq5h+/RUj1U1bW/AsH1SgqM92sPmSY5umEM4uRpeACrPmnen xDx16iu3Ye3JHfyrWVgd2ky0oa5N5BNRy8iMgZy82EYMhxGRJnh5lB2kzC+RPAr7EsElryUPW s9GqRdW5+tglOfhOjucNAMUGZ7s2QU5F98FqzllYuBAbDqcqYiLwQ5KeOL9pT7Bq+HhXCQf0i D1Ua8aPrZWWSSy1wrHqKr0Sf+kWCWOl8Rct29RaMgZELGH0zP2SL1lS+Q6F59Q39ROfXezRTM VymGTyB2wrHZAd8DPDFb5BNFZIChaa3MIhgtOfy+9+diD3lVK0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 13 Jan 2018 11:33:47 +0100 A single character (line break) 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/pinctrl/pinmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 55502fc4479c..139a004a5e71 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -619,7 +619,7 @@ static int pinmux_pins_show(struct seq_file *s, void *what) pctlops->get_group_name(pctldev, desc->mux_setting->group)); else - seq_printf(s, "\n"); + seq_putc(s, '\n'); } mutex_unlock(&pctldev->mutex); -- 2.15.1