u-boot-brain/include/dm
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
..
platform_data dm: sh: serial: Add support driver model 2015-02-12 15:17:17 -07:00
device-internal.h dm: core: Convert driver_bind() to use const 2015-04-18 11:11:19 -06:00
device.h dm: core: Extend struct udevice by '.uclass_platdata' field. 2015-04-22 11:03:14 -06:00
lists.h dm: Add a function to bind a device by driver name 2014-11-22 10:16:47 +01:00
platdata.h dm: core: Allow a list of devices to be declared in one step 2014-10-22 10:36:54 -06:00
root.h dm: Add dm_scan_other() to locate board-specific devices 2014-07-23 14:08:37 +01:00
test.h dm: test: Add tests for device's uclass platform data 2015-04-22 11:03:14 -06:00
uclass-id.h dm: usb: sandbox: Add an emulator for USB flash devices 2015-04-18 11:11:26 -06:00
uclass-internal.h dm: core: uclass: add function: uclass_find_device_by_name() 2015-04-22 11:03:15 -06:00
uclass.h dm: core: uclass: add function: uclass_get_device_by_name() 2015-04-22 11:03:15 -06:00
ut.h dm: i2c: Add tests for I2C 2014-12-11 13:18:43 -07:00
util.h dm: Disable dm_warn() in SPL 2014-11-21 08:13:17 +01:00