Re: [PATCH] devinfo: Omit parent if direct descendent of bus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29.11.21 08:15, Ahmad Fatoum wrote:
> In that case parentage adds no extra info, so we can just omit it.
> 
> Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx>
> ---

Please dismiss. Sent out a (misnamed) v2 just now.

>  commands/devinfo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/commands/devinfo.c b/commands/devinfo.c
> index 2e2e48e42cc5..b4894cc9272d 100644
> --- a/commands/devinfo.c
> +++ b/commands/devinfo.c
> @@ -85,7 +85,7 @@ static int do_devinfo(int argc, char *argv[])
>  		if (dev->info)
>  			dev->info(dev);
>  
> -		if (dev->parent)
> +		if (dev->parent && dev->parent != dev->bus->dev)
>  			printf("Parent: %s\n", dev_name(dev->parent));
>  
>  		first = true;
> 


-- 
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 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux