1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-12-26 20:54:36 +01:00
Files
u-boot-megous/include/dm/uclass.h
Simon Glass b06750501f dm: core: Add uclass_first_device_err() to return a valid device
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>
2016-03-14 15:34:50 -06:00

9.4 KiB