hwmon: Fix parameter documentation
Guenter Roeck
maintainerPATCH 2/5 hwmon: (sht21) Fix documentation of struct sht21
In reply to Guenter RoeckSparse reports:
drivers/hwmon/sht21.c:60: warning:
No description found for parameter 'client'drivers/hwmon/sht21.c:60:
warning: Excess struct member 'hwmon_dev' description in 'sht21'
--- drivers/hwmon/sht21.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/sht21.c +1 -1
@@ -41,7 +41,7 @@/** * struct sht21 - SHT21 device specific data -* @hwmon_dev: device registered with hwmon +* @client: I2C client device * @lock: mutex to protect measurement values * @last_update: time of last update (jiffies) * @temperature: cached temperature measurement value
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 3/5 hwmon: (sht15) Fix parameter documentation of sht15_crc8()
In reply to Guenter RoeckSparse reports:
drivers/hwmon/sht15.c:188: warning:
No description found for parameter 'len'
--- drivers/hwmon/sht15.c | 1 + 1 file changed, 1 insertion(+)
drivers/hwmon/sht15.c +1 -0
@@ -179,6 +179,7 @@ struct sht15_data {* sht15_crc8() - compute crc8 * @data: sht15 specific data. * @value: sht15 retrieved data. +* @len: Length of retrieved data * * This implements section 2 of the CRC datasheet. */
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 4/5 hwmon : (iio_hwmon) Fix documentation of struct iio_hwmon_state
In reply to Guenter RoeckSparse reports:
drivers/hwmon/iio_hwmon.c:36: warning:
No description found for parameter 'groups'
--- drivers/hwmon/iio_hwmon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hwmon/iio_hwmon.c +2 -1
@@ -23,7 +23,8 @@* @channels: filled with array of channels from iio * @num_channels: number of channels in channels (saves counting twice) * @hwmon_dev: associated hwmon device -* @attr_group: the group of attributes +* @attr_group: the group of attributes +* @groups: null terminated array of attribute groups * @attrs: null terminated array of attribute pointers. */ struct iio_hwmon_state {
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 5/5 hwmon: (hih6130) Fix documentation of struct hih6130
In reply to Guenter RoeckSparse reports:
drivers/hwmon/hih6130.c:56: warning:
No description found for parameter 'client'drivers/hwmon/hih6130.c:56: warning:
Excess struct member 'hwmon_dev' description in 'hih6130'
--- drivers/hwmon/hih6130.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/hih6130.c +1 -1
@@ -37,7 +37,7 @@/** * struct hih6130 - HIH-6130 device specific data -* @hwmon_dev: device registered with hwmon +* @client: pointer to I2C client device * @lock: mutex to protect measurement values * @valid: only false before first measurement is taken * @last_update: time of last update (jiffies)
Signature · 1 line
2.7.4
Guenter Roeck
maintainerPATCH 1/5 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'
--- drivers/hwmon/hwmon.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/hwmon/hwmon.c +6 -6
@@ -665,7 +665,7 @@ EXPORT_SYMBOL_GPL(hwmon_device_register_with_groups);* @dev: the parent device * @name: hwmon name attribute * @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 * * hwmon_device_unregister() must be called when the device is no
@@ -772,11 +772,11 @@ EXPORT_SYMBOL_GPL(devm_hwmon_device_register_with_groups);/** * devm_hwmon_device_register_with_info - register w/ hwmon -* @dev: the parent device -* @name: hwmon name attribute -* @drvdata: driver data to attach to created device -* @info: Pointer to hwmon chip information -* @groups - pointer to list of driver specific attribute groups +* @dev: the parent device +* @name: hwmon name attribute +* @drvdata: driver data to attach to created device +* @chip: pointer to hwmon chip information +* @groups: pointer to list of driver specific attribute groups * * Returns the pointer to the new device. The new device is automatically * unregistered with the parent device.
Signature · 1 line
2.7.4