Home
last modified time | relevance | path

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

/rk3399_rockchip-uboot/include/dm/
H A Duclass.hb06750501f5c0eef7fef094f13d2f2e313c60b79 Thu Feb 11 20:23:25 UTC 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>
/rk3399_rockchip-uboot/drivers/core/
H A Duclass.cb06750501f5c0eef7fef094f13d2f2e313c60b79 Thu Feb 11 20:23:25 UTC 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>