]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: core: precise comments for get/find device by name
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Mon, 20 Apr 2015 11:32:34 +0000 (13:32 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:30:11 +0000 (22:30 +0200)
The functions:
- uclass_find_device_by_name()
- uclass_get_device_by_name()
searches the required device for the exactly given name.
This patch, presice this fact for both function's comments.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
include/dm/uclass-internal.h
include/dm/uclass.h

index 153f2a7626f7d44ec0dc7b40e3a9202f169165ed..a9b2fbe2c65d7fb43cefd74f6588f305cfba19fc 100644 (file)
@@ -63,7 +63,7 @@ int uclass_find_next_device(struct udevice **devp);
 /**
  * uclass_find_device_by_name() - Find uclass device based on ID and name
  *
- * This searches for a device with the given name.
+ * This searches for a device with the exactly given name.
  *
  * The device is NOT probed, it is merely returned.
  *
index 66e0ea509c99718e825a5324d6269d10b69c6e2b..4cfc0df84c21bac942c633279ea358e968527f53 100644 (file)
@@ -132,7 +132,7 @@ int uclass_get_device(enum uclass_id id, int index, struct udevice **devp);
 /**
  * uclass_get_device_by_name() - Get a uclass device by it's name
  *
- * This searches the devices in the uclass for one with the given name.
+ * This searches the devices in the uclass for one with the exactly given name.
  *
  * The device is probed to activate it ready for use.
  *