]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Correct comment on uclass_id_foreach_dev()
authorSimon Glass <sjg@chromium.org>
Sun, 14 Jun 2020 14:48:39 +0000 (08:48 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:57:22 +0000 (18:57 -0600)
This parameter should be a struct uclass, not struct udevice. Correct it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
include/dm/uclass.h

index 70fca79b449824a1d49549458d72b8ea52cf592e..67ff7466c8627a5f809bf51e80fa5e2e41624855 100644 (file)
@@ -390,7 +390,7 @@ int uclass_resolve_seq(struct udevice *dev);
  * @id: enum uclass_id ID to use
  * @pos: struct udevice * to hold the current device. Set to NULL when there
  * are no more devices.
- * @uc: temporary uclass variable (struct udevice *)
+ * @uc: temporary uclass variable (struct uclass *)
  */
 #define uclass_id_foreach_dev(id, pos, uc) \
        if (!uclass_get(id, &uc)) \