Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit de2eae26 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij
Browse files

pinctrl: Replace two seq_printf() calls by seq_puts() in pinconf_show_map()



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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent add7bfce
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -244,10 +244,10 @@ void pinconf_show_map(struct seq_file *s, struct pinctrl_map const *map)


	switch (map->type) {
	switch (map->type) {
	case PIN_MAP_TYPE_CONFIGS_PIN:
	case PIN_MAP_TYPE_CONFIGS_PIN:
		seq_printf(s, "pin ");
		seq_puts(s, "pin ");
		break;
		break;
	case PIN_MAP_TYPE_CONFIGS_GROUP:
	case PIN_MAP_TYPE_CONFIGS_GROUP:
		seq_printf(s, "group ");
		seq_puts(s, "group ");
		break;
		break;
	default:
	default:
		break;
		break;