“2d6c4e40ab7eb1ab7b8cd4a232b0c9554ea8de9b”上不存在“...include/uapi/git@gitcode.net:openharmony/kernel_linux.git”
提交 d6ea6893 编写于 作者: M Markus Elfring 提交者: Gregory CLEMENT

ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show()

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: NMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: NAndrew Lunn <andrew@lunn.ch>
Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
上级 1001354c
...@@ -478,13 +478,13 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) ...@@ -478,13 +478,13 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
(data_in ^ in_pol) & msk ? "hi" : "lo", (data_in ^ in_pol) & msk ? "hi" : "lo",
in_pol & msk ? "lo" : "hi"); in_pol & msk ? "lo" : "hi");
if (!((edg_msk | lvl_msk) & msk)) { if (!((edg_msk | lvl_msk) & msk)) {
seq_printf(s, " disabled\n"); seq_puts(s, " disabled\n");
continue; continue;
} }
if (edg_msk & msk) if (edg_msk & msk)
seq_printf(s, " edge "); seq_puts(s, " edge ");
if (lvl_msk & msk) if (lvl_msk & msk)
seq_printf(s, " level"); seq_puts(s, " level");
seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear "); seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear ");
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册