Re: [PATCH v2 02/17] dm: core: Add a function to find a device by drvdata

2020-02-03 Thread Bin Meng
On Tue, Feb 4, 2020 at 8:20 AM Simon Glass wrote: > > It is sometimes useful to find a device in a uclass using only its driver > data. The driver data often indicates the 'subtype' of the device, e,g, > via its compatible string. > > Add a function to handle this. > > Signed-off-by: Simon Glass

[PATCH v2 02/17] dm: core: Add a function to find a device by drvdata

2020-02-03 Thread Simon Glass
It is sometimes useful to find a device in a uclass using only its driver data. The driver data often indicates the 'subtype' of the device, e,g, via its compatible string. Add a function to handle this. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to find a device by drvdata