A common pattern is to call uclass_first_device() and then check if it actually returns a device. Add a new function which does this, returning an error if there are no devices in that uclass. Signed-off-by: Simon Glass <sjg@chromium.org> |
||
|---|---|---|
| .. | ||
| platform_data | ||
| device-internal.h | ||
| device.h | ||
| lists.h | ||
| pinctrl.h | ||
| platdata.h | ||
| root.h | ||
| test.h | ||
| uclass-id.h | ||
| uclass-internal.h | ||
| uclass.h | ||
| util.h | ||