u-boot/drivers/core
Przemyslaw Marczak b7af1a2da7 dm: core: uclass: add function: uclass_get_device_by_name()
This commit extends the driver model uclass's API by function:
- uclass_get_device_by_name()

And this function returns the device if:
- uclass with given ID, exists,
- device with exactly given name(dev->name), exists,
- device probe, doesn't return an error.

The returned device is activated and ready to use.

Note:
This function returns the first device, which name is equal
to the given one. This means, that using this function you must
assume, that the device name is unique in the given uclass's ID
device list.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
2015-04-22 11:03:15 -06:00
..
Kconfig kconfig: remove unneeded dependency on !SPL_BUILD 2015-02-24 17:06:27 -05:00
Makefile dm: Allow device removal features to be dropped 2014-11-21 08:13:02 +01:00
device-remove.c dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
device.c dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
lists.c dm: core: Rename driver data function to dev_get_driver_data() 2015-04-18 11:11:19 -06:00
root.c dm: Add support for all targets which requires MANUAL_RELOC 2015-02-12 15:17:29 -07:00
simple-bus.c dm: core: Add support for simple-bus 2014-10-22 10:36:56 -06:00
uclass.c dm: core: uclass: add function: uclass_get_device_by_name() 2015-04-22 11:03:15 -06:00
util.c