Home
last modified time | relevance | path

Searched hist:b0675050 (Results 1 – 2 of 2) sorted by relevance

/openbmc/u-boot/include/dm/
H A Duclass.hb0675050 Thu Feb 11 14:23:25 CST 2016 Simon Glass <sjg@chromium.org> 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>
/openbmc/u-boot/drivers/core/
H A Duclass.cb0675050 Thu Feb 11 14:23:25 CST 2016 Simon Glass <sjg@chromium.org> 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>