Skip to content

Commit f8878dc

Browse files
robertpjdaygregkh
authored andcommitted
Documentation: Tidy up some drivers/base/core.c kerneldoc content.
Standardize the indentation, and switch the order of a couple kerneldoc entries to match the parameter order. No functional change. Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9447057 commit f8878dc

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎drivers/base/core.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ ssize_t device_show_bool(struct device *dev, struct device_attribute *attr,
193193
EXPORT_SYMBOL_GPL(device_show_bool);
194194

195195
/**
196-
* device_release - free device structure.
197-
* @kobj: device's kobject.
196+
* device_release - free device structure.
197+
* @kobj: device's kobject.
198198
*
199-
* This is called once the reference count for the object
200-
* reaches 0. We forward the call to the device's release
201-
* method, which should handle actually freeing the structure.
199+
* This is called once the reference count for the object
200+
* reaches 0. We forward the call to the device's release
201+
* method, which should handle actually freeing the structure.
202202
*/
203203
static void device_release(struct kobject *kobj)
204204
{
@@ -1334,8 +1334,8 @@ const char *device_get_devnode(struct device *dev,
13341334
/**
13351335
* device_for_each_child - device child iterator.
13361336
* @parent: parent struct device.
1337-
* @data: data for the callback.
13381337
* @fn: function to be called for each device.
1338+
* @data: data for the callback.
13391339
*
13401340
* Iterate over @parent's child devices, and call @fn for each,
13411341
* passing it @data.
@@ -1363,8 +1363,8 @@ int device_for_each_child(struct device *parent, void *data,
13631363
/**
13641364
* device_find_child - device iterator for locating a particular device.
13651365
* @parent: parent struct device
1366-
* @data: Data to pass to match function
13671366
* @match: Callback function to check device
1367+
* @data: Data to pass to match function
13681368
*
13691369
* This is similar to the device_for_each_child() function above, but it
13701370
* returns a reference to a device that is 'found' for later use, as

0 commit comments

Comments
 (0)