Re: [PATCH v2 01/17] dm: core: Allow iterating devices without uclass_get()

2020-02-03 Thread Bin Meng
On Tue, Feb 4, 2020 at 8:20 AM Simon Glass wrote: > > At present we have uclass_foreach_dev() which requires that uclass_get() > be called beforehand to find the uclass. This is good if we suspect that > that function might fail, but often we know that the uclass is available. > > Add a new

[PATCH v2 01/17] dm: core: Allow iterating devices without uclass_get()

2020-02-03 Thread Simon Glass
At present we have uclass_foreach_dev() which requires that uclass_get() be called beforehand to find the uclass. This is good if we suspect that that function might fail, but often we know that the uclass is available. Add a new helper which does this uclass_get() automatically, so that only the