Skip to content
Snippets Groups Projects
Commit 132f9bfc authored by Simon Glass's avatar Simon Glass
Browse files

dm: core: Correct device_get_child_by_of_offset() parameter


This parameter is named 'seq' but should be named 'of_offset'.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 2693047a
No related branches found
No related tags found
No related merge requests found
......@@ -459,14 +459,14 @@ int device_find_child_by_of_offset(struct udevice *parent, int of_offset,
return -ENODEV;
}
int device_get_child_by_of_offset(struct udevice *parent, int seq,
int device_get_child_by_of_offset(struct udevice *parent, int node,
struct udevice **devp)
{
struct udevice *dev;
int ret;
*devp = NULL;
ret = device_find_child_by_of_offset(parent, seq, &dev);
ret = device_find_child_by_of_offset(parent, node, &dev);
return device_get_device_tail(dev, ret, devp);
}
......
......@@ -386,7 +386,7 @@ int device_find_child_by_of_offset(struct udevice *parent, int of_offset,
* @devp: Returns pointer to device if found, otherwise this is set to NULL
* @return 0 if OK, -ve on error
*/
int device_get_child_by_of_offset(struct udevice *parent, int seq,
int device_get_child_by_of_offset(struct udevice *parent, int of_offset,
struct udevice **devp);
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment