diff mbox

[U-Boot,V5,3/3] dm: core: precise comments for get/find device by name

Message ID 1429529554-3551-3-git-send-email-p.marczak@samsung.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Przemyslaw Marczak April 20, 2015, 11:32 a.m. UTC
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>
---
Canges V5:
-new patch
---
 include/dm/uclass-internal.h | 2 +-
 include/dm/uclass.h          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Glass April 20, 2015, 9:24 p.m. UTC | #1
On 20 April 2015 at 05:32, Przemyslaw Marczak <p.marczak@samsung.com> wrote:
> 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>
> ---
> Canges V5:
> -new patch
> ---
>  include/dm/uclass-internal.h | 2 +-
>  include/dm/uclass.h          | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass April 22, 2015, 4:52 p.m. UTC | #2
On 20 April 2015 at 15:24, Simon Glass <sjg@chromium.org> wrote:
> On 20 April 2015 at 05:32, Przemyslaw Marczak <p.marczak@samsung.com> wrote:
>> 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>
>> ---
>> Canges V5:
>> -new patch
>> ---
>>  include/dm/uclass-internal.h | 2 +-
>>  include/dm/uclass.h          | 2 +-
>>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!
diff mbox

Patch

diff --git a/include/dm/uclass-internal.h b/include/dm/uclass-internal.h
index 153f2a7..a9b2fbe 100644
--- a/include/dm/uclass-internal.h
+++ b/include/dm/uclass-internal.h
@@ -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.
  *
diff --git a/include/dm/uclass.h b/include/dm/uclass.h
index 66e0ea5..4cfc0df 100644
--- a/include/dm/uclass.h
+++ b/include/dm/uclass.h
@@ -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.
  *