mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
dm: core: Correct comment on uclass_id_foreach_dev()
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>
This commit is contained in:
@@ -390,7 +390,7 @@ int uclass_resolve_seq(struct udevice *dev);
|
|||||||
* @id: enum uclass_id ID to use
|
* @id: enum uclass_id ID to use
|
||||||
* @pos: struct udevice * to hold the current device. Set to NULL when there
|
* @pos: struct udevice * to hold the current device. Set to NULL when there
|
||||||
* are no more devices.
|
* are no more devices.
|
||||||
* @uc: temporary uclass variable (struct udevice *)
|
* @uc: temporary uclass variable (struct uclass *)
|
||||||
*/
|
*/
|
||||||
#define uclass_id_foreach_dev(id, pos, uc) \
|
#define uclass_id_foreach_dev(id, pos, uc) \
|
||||||
if (!uclass_get(id, &uc)) \
|
if (!uclass_get(id, &uc)) \
|
||||||
|
Reference in New Issue
Block a user