diff mbox series

[1/2] pinctrl: amd: Fix newline declaration in debugfs output

Message ID 20220722220810.28894-1-mario.limonciello@amd.com
State Accepted
Commit dc24b7530dff6d2c1f92ba75e10f335eebc48ccc
Headers show
Series [1/2] pinctrl: amd: Fix newline declaration in debugfs output | expand

Commit Message

Mario Limonciello July 22, 2022, 10:08 p.m. UTC
Currently the debugfs output for pinctrl-amd puts the first line
combined with "GPIO bank".  This makes it a little harder to process
as the file needs to be manually corrected for the mistake.

Change this to be a new line character instead.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/pinctrl/pinctrl-amd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Linus Walleij July 26, 2022, 8 a.m. UTC | #1
On Sat, Jul 23, 2022 at 12:08 AM Mario Limonciello
<mario.limonciello@amd.com> wrote:

> Currently the debugfs output for pinctrl-amd puts the first line
> combined with "GPIO bank".  This makes it a little harder to process
> as the file needs to be manually corrected for the mistake.
>
> Change this to be a new line character instead.
>
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>

Patch applied as obviously correct.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/drivers/pinctrl/pinctrl-amd.c b/drivers/pinctrl/pinctrl-amd.c
index 0645c2c24f50..b7f34352b5d4 100644
--- a/drivers/pinctrl/pinctrl-amd.c
+++ b/drivers/pinctrl/pinctrl-amd.c
@@ -224,7 +224,7 @@  static void amd_gpio_dbg_show(struct seq_file *s, struct gpio_chip *gc)
 	char *debounce_enable;
 
 	for (bank = 0; bank < gpio_dev->hwbank_num; bank++) {
-		seq_printf(s, "GPIO bank%d\t", bank);
+		seq_printf(s, "GPIO bank%d\n", bank);
 
 		switch (bank) {
 		case 0: