]> Git Repo - linux.git/commitdiff
gpiolib: fix debugfs dangling chip separator
authorJohan Hovold <[email protected]>
Mon, 28 Oct 2024 12:49:59 +0000 (13:49 +0100)
committerBartosz Golaszewski <[email protected]>
Thu, 31 Oct 2024 18:14:17 +0000 (19:14 +0100)
Add the missing newline after entries for recently removed gpio chips
so that the chip sections are separated by a newline as intended.

Fixes: e348544f7994 ("gpio: protect the list of GPIO devices with SRCU")
Cc: [email protected] # 6.9
Cc: Bartosz Golaszewski <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bartosz Golaszewski <[email protected]>
drivers/gpio/gpiolib.c

index e27488a90bc97d4ccbd2acadef949b29d2d776fa..2b02655abb56eafddfd58bfd2ccddd453307f72f 100644 (file)
@@ -4971,7 +4971,7 @@ static int gpiolib_seq_show(struct seq_file *s, void *v)
 
        gc = srcu_dereference(gdev->chip, &gdev->srcu);
        if (!gc) {
-               seq_printf(s, "%s%s: (dangling chip)",
+               seq_printf(s, "%s%s: (dangling chip)\n",
                           priv->newline ? "\n" : "",
                           dev_name(&gdev->dev));
                return 0;
This page took 0.061953 seconds and 4 git commands to generate.