summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2024-10-28 13:49:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-11-08 16:31:00 +0100
commit3dfd421cecf9d6527176c62695c260bc0633de62 (patch)
tree2b535da3dbef9ecbd0ebda866a98c1a1f1be6bb3
parent13b2098e108d8f6057256f739bc2f46680ec819e (diff)
downloadlinux-3dfd421cecf9d6527176c62695c260bc0633de62.tar.gz
linux-3dfd421cecf9d6527176c62695c260bc0633de62.tar.bz2
linux-3dfd421cecf9d6527176c62695c260bc0633de62.zip
gpiolib: fix debugfs dangling chip separator
[ Upstream commit 604888f8c3d01fddd9366161efc65cb3182831f1 ] 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: stable@vger.kernel.org # 6.9 Cc: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20241028125000.24051-3-johan+linaro@kernel.org Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/gpio/gpiolib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 1f522499c6fc..337971080dfd 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -4879,7 +4879,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;