Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Gil Fine and committed by
Greg Kroah-Hartman
716cec5f a86537ad

+4 -4
+4 -4
drivers/base/core.c
··· 3994 3994 /** 3995 3995 * device_for_each_child - device child iterator. 3996 3996 * @parent: parent struct device. 3997 - * @fn: function to be called for each device. 3998 3997 * @data: data for the callback. 3998 + * @fn: function to be called for each device. 3999 3999 * 4000 4000 * Iterate over @parent's child devices, and call @fn for each, 4001 4001 * passing it @data. ··· 4024 4024 /** 4025 4025 * device_for_each_child_reverse - device child iterator in reversed order. 4026 4026 * @parent: parent struct device. 4027 - * @fn: function to be called for each device. 4028 4027 * @data: data for the callback. 4028 + * @fn: function to be called for each device. 4029 4029 * 4030 4030 * Iterate over @parent's child devices, and call @fn for each, 4031 4031 * passing it @data. ··· 4055 4055 * device_for_each_child_reverse_from - device child iterator in reversed order. 4056 4056 * @parent: parent struct device. 4057 4057 * @from: optional starting point in child list 4058 - * @fn: function to be called for each device. 4059 4058 * @data: data for the callback. 4059 + * @fn: function to be called for each device. 4060 4060 * 4061 4061 * Iterate over @parent's child devices, starting at @from, and call @fn 4062 4062 * for each, passing it @data. This helper is identical to ··· 4089 4089 /** 4090 4090 * device_find_child - device iterator for locating a particular device. 4091 4091 * @parent: parent struct device 4092 - * @match: Callback function to check device 4093 4092 * @data: Data to pass to match function 4093 + * @match: Callback function to check device 4094 4094 * 4095 4095 * This is similar to the device_for_each_child() function above, but it 4096 4096 * returns a reference to a device that is 'found' for later use, as