Skip to content

Commit 716cec5

Browse files
Gil Finegregkh
authored andcommitted
driver core: Fix order of the kernel-doc parameters
Fix the order of the kernel-doc parameters in device_find_child() and device_for_each_child*() functions to match the actual functions signature. No functional changes. Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Link: https://lore.kernel.org/r/20250831194930.2063390-1-gil.fine@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent a86537a commit 716cec5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/base/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3994,8 +3994,8 @@ const char *device_get_devnode(const struct device *dev,
39943994
/**
39953995
* device_for_each_child - device child iterator.
39963996
* @parent: parent struct device.
3997-
* @fn: function to be called for each device.
39983997
* @data: data for the callback.
3998+
* @fn: function to be called for each device.
39993999
*
40004000
* Iterate over @parent's child devices, and call @fn for each,
40014001
* passing it @data.
@@ -4024,8 +4024,8 @@ EXPORT_SYMBOL_GPL(device_for_each_child);
40244024
/**
40254025
* device_for_each_child_reverse - device child iterator in reversed order.
40264026
* @parent: parent struct device.
4027-
* @fn: function to be called for each device.
40284027
* @data: data for the callback.
4028+
* @fn: function to be called for each device.
40294029
*
40304030
* Iterate over @parent's child devices, and call @fn for each,
40314031
* passing it @data.
@@ -4055,8 +4055,8 @@ EXPORT_SYMBOL_GPL(device_for_each_child_reverse);
40554055
* device_for_each_child_reverse_from - device child iterator in reversed order.
40564056
* @parent: parent struct device.
40574057
* @from: optional starting point in child list
4058-
* @fn: function to be called for each device.
40594058
* @data: data for the callback.
4059+
* @fn: function to be called for each device.
40604060
*
40614061
* Iterate over @parent's child devices, starting at @from, and call @fn
40624062
* for each, passing it @data. This helper is identical to
@@ -4089,8 +4089,8 @@ EXPORT_SYMBOL_GPL(device_for_each_child_reverse_from);
40894089
/**
40904090
* device_find_child - device iterator for locating a particular device.
40914091
* @parent: parent struct device
4092-
* @match: Callback function to check device
40934092
* @data: Data to pass to match function
4093+
* @match: Callback function to check device
40944094
*
40954095
* This is similar to the device_for_each_child() function above, but it
40964096
* returns a reference to a device that is 'found' for later use, as

0 commit comments

Comments
 (0)