[PATCH 1/3] gpio: gpioinfo: use dev_name to get device name
Sascha Hauer
sha at pengutronix.de
Thu Mar 9 02:51:38 PST 2023
On Tue, Mar 07, 2023 at 11:23:18AM +0100, Ahmad Fatoum wrote:
> Otherwise, we don't correctly number devices with dynamic ID.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> drivers/gpio/gpiolib.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks
Sascha
>
> 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
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list