mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
gpiolib: fix debugfs dangling chip separator
Add the missing newline after entries for recently removed gpio chips
so that the chip sections are separated by a newline as intended.
Fixes: e348544f79
("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>
This commit is contained in:
parent
3e8b7238b4
commit
604888f8c3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user