Re: [PATCH] uclass: add uclass_find_device_by_phandle_id() helper

2023-04-28 Thread Simon Glass
On Thu, 13 Apr 2023 at 09:16, Rasmus Villemoes wrote: > > The functions uclass_find_device_by_phandle() and > uclass_get_device_by_phandle_id() both loop over a given uclass > looking for a device with a given phandle. Factor that out to a common > helper. > > For now, there are no (known

Re: [PATCH] uclass: add uclass_find_device_by_phandle_id() helper

2023-04-18 Thread Simon Glass
On Thu, 13 Apr 2023 at 09:16, Rasmus Villemoes wrote: > > The functions uclass_find_device_by_phandle() and > uclass_get_device_by_phandle_id() both loop over a given uclass > looking for a device with a given phandle. Factor that out to a common > helper. > > For now, there are no (known

[PATCH] uclass: add uclass_find_device_by_phandle_id() helper

2023-04-13 Thread Rasmus Villemoes
The functions uclass_find_device_by_phandle() and uclass_get_device_by_phandle_id() both loop over a given uclass looking for a device with a given phandle. Factor that out to a common helper. For now, there are no (known potential) users of the new helper outside uclass.c, so make it static.