aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/core.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2017-05-02 10:47:35 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-05-22 10:39:24 +0200
commit390e10464db011f382dc7eb6eeda25d5b8ceccbe (patch)
treed81ff8ac30bfa25428b235f85a02e544a986858b /drivers/pinctrl/core.c
parentpinctrl: Add spaces for better code readability (diff)
downloadlinux-dev-390e10464db011f382dc7eb6eeda25d5b8ceccbe.tar.xz
linux-dev-390e10464db011f382dc7eb6eeda25d5b8ceccbe.zip
pinctrl: Use seq_putc() in pinctrl_maps_show()
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 <elfring@users.sourceforge.net> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/core.c')
-rw-r--r--drivers/pinctrl/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 1653cbda6a82..7df16771fa13 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -1732,7 +1732,7 @@ static int pinctrl_maps_show(struct seq_file *s, void *what)
break;
}
- seq_printf(s, "\n");
+ seq_putc(s, '\n');
}
mutex_unlock(&pinctrl_maps_mutex);