Commit 3870945a authored by Guenter Roeck's avatar Guenter Roeck

hwmon: Fix parameter documentation

sparse reports:

drivers/hwmon/hwmon.c:681: warning:
	No description found for parameter 'chip'
drivers/hwmon/hwmon.c:681: warning:
	Excess function parameter 'info' description in
	'hwmon_device_register_with_info'
drivers/hwmon/hwmon.c:789: warning:
	No description found for parameter 'chip'
drivers/hwmon/hwmon.c:789: warning:
	No description found for parameter 'groups'
drivers/hwmon/hwmon.c:789: warning:
	Excess function parameter 'info' description in
	'devm_hwmon_device_register_with_info'
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 98b16a09
...@@ -678,7 +678,7 @@ EXPORT_SYMBOL_GPL(hwmon_device_register_with_groups); ...@@ -678,7 +678,7 @@ EXPORT_SYMBOL_GPL(hwmon_device_register_with_groups);
* @dev: the parent device * @dev: the parent device
* @name: hwmon name attribute * @name: hwmon name attribute
* @drvdata: driver data to attach to created device * @drvdata: driver data to attach to created device
* @info: pointer to hwmon chip information * @chip: pointer to hwmon chip information
* @extra_groups: pointer to list of additional non-standard attribute groups * @extra_groups: pointer to list of additional non-standard attribute groups
* *
* hwmon_device_unregister() must be called when the device is no * hwmon_device_unregister() must be called when the device is no
...@@ -785,11 +785,11 @@ EXPORT_SYMBOL_GPL(devm_hwmon_device_register_with_groups); ...@@ -785,11 +785,11 @@ EXPORT_SYMBOL_GPL(devm_hwmon_device_register_with_groups);
/** /**
* devm_hwmon_device_register_with_info - register w/ hwmon * devm_hwmon_device_register_with_info - register w/ hwmon
* @dev: the parent device * @dev: the parent device
* @name: hwmon name attribute * @name: hwmon name attribute
* @drvdata: driver data to attach to created device * @drvdata: driver data to attach to created device
* @info: Pointer to hwmon chip information * @chip: pointer to hwmon chip information
* @groups - pointer to list of driver specific attribute groups * @groups: pointer to list of driver specific attribute groups
* *
* Returns the pointer to the new device. The new device is automatically * Returns the pointer to the new device. The new device is automatically
* unregistered with the parent device. * unregistered with the parent device.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment