Skip to content

Commit ab017a1

Browse files
zijun-hugregkh
authored andcommitted
driver core: Rename declaration parameter name for API device_find_child() cluster
For APIs: device_find_child() device_for_each_child() device_for_each_child_reverse() Their declaration has parameter name 'dev', but their defination changes the name to 'parent'. Rename declaration name to defination 'parent' to make both have the same name. Reviewed-by: Fan Ni <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Zijun Hu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3f58ee5 commit ab017a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/linux/device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,14 +1074,14 @@ void device_del(struct device *dev);
10741074

10751075
DEFINE_FREE(device_del, struct device *, if (_T) device_del(_T))
10761076

1077-
int device_for_each_child(struct device *dev, void *data,
1077+
int device_for_each_child(struct device *parent, void *data,
10781078
int (*fn)(struct device *dev, void *data));
1079-
int device_for_each_child_reverse(struct device *dev, void *data,
1079+
int device_for_each_child_reverse(struct device *parent, void *data,
10801080
int (*fn)(struct device *dev, void *data));
10811081
int device_for_each_child_reverse_from(struct device *parent,
10821082
struct device *from, const void *data,
10831083
int (*fn)(struct device *, const void *));
1084-
struct device *device_find_child(struct device *dev, const void *data,
1084+
struct device *device_find_child(struct device *parent, const void *data,
10851085
device_match_t match);
10861086
struct device *device_find_child_by_name(struct device *parent,
10871087
const char *name);

0 commit comments

Comments
 (0)