summaryrefslogtreecommitdiff
path: root/include/dm/device.h
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-15 11:07:23 (GMT)
committerSimon Glass <sjg@chromium.org>2015-04-22 17:03:15 (GMT)
commitb7af1a2da767c0dd283ffce3d50efd36af32df14 (patch)
treecfbf4a091d602287ffd10cd15d5243ae79ce0fec /include/dm/device.h
parente0735a4c60577fafdaed71c5ef046f04b0f53f09 (diff)
downloadu-boot-fsl-qoriq-b7af1a2da767c0dd283ffce3d50efd36af32df14.tar.xz
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>
Diffstat (limited to 'include/dm/device.h')
0 files changed, 0 insertions, 0 deletions