mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/3] gpio: gpioinfo: use dev_name to get device name
@ 2023-03-07 10:23 Ahmad Fatoum
  2023-03-07 10:23 ` [PATCH 2/3] gpio: pca953x: sync DT compatibles with Linux Ahmad Fatoum
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2023-03-07 10:23 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

Otherwise, we don't correctly number devices with dynamic ID.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/gpio/gpiolib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 2e7a39b47552..736279875856 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -716,7 +716,7 @@ static int do_gpiolib(int argc, char *argv[])
 			printf("\nGPIOs %u-%u, chip %s:\n",
 				gi->chip->base,
 				gi->chip->base + gi->chip->ngpio - 1,
-				gi->chip->dev->name);
+				dev_name(gi->chip->dev));
 			printf("             %-3s %-3s %-9s %-20s %-20s\n", "dir", "val", "requested", "name", "label");
 		}
 
-- 
2.30.2




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-09 10:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-07 10:23 [PATCH 1/3] gpio: gpioinfo: use dev_name to get device name Ahmad Fatoum
2023-03-07 10:23 ` [PATCH 2/3] gpio: pca953x: sync DT compatibles with Linux Ahmad Fatoum
2023-03-07 10:23 ` [PATCH 3/3] gpio: pca953x: add optional support for regulator and reset GPIO Ahmad Fatoum
2023-03-09 10:51 ` [PATCH 1/3] gpio: gpioinfo: use dev_name to get device name Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox