mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-18 21:14:28 +00:00
hwmon: (adm1029) Fix multi-line comments
Cc: Corentin Labbe <corentin.labbe@geomatys.fr> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
27b9de3c4a
commit
94b991d4c7
1 changed files with 11 additions and 8 deletions
|
@ -240,9 +240,9 @@ static ssize_t set_fan_div(struct device *dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Access rights on sysfs, S_IRUGO stand for Is Readable by User, Group and Others
|
* Access rights on sysfs. S_IRUGO: Is Readable by User, Group and Others
|
||||||
S_IWUSR stand for Is Writable by User
|
* S_IWUSR: Is Writable by User.
|
||||||
*/
|
*/
|
||||||
static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0);
|
static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0);
|
||||||
static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_temp, NULL, 1);
|
static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_temp, NULL, 1);
|
||||||
static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, show_temp, NULL, 2);
|
static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, show_temp, NULL, 2);
|
||||||
|
@ -303,7 +303,8 @@ static int adm1029_detect(struct i2c_client *client,
|
||||||
if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
|
if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
/* ADM1029 doesn't have CHIP ID, check just MAN ID
|
/*
|
||||||
|
* ADM1029 doesn't have CHIP ID, check just MAN ID
|
||||||
* For better detection we check also ADM1029_TEMP_DEVICES_INSTALLED,
|
* For better detection we check also ADM1029_TEMP_DEVICES_INSTALLED,
|
||||||
* ADM1029_REG_NB_FAN_SUPPORT and compare it with possible values
|
* ADM1029_REG_NB_FAN_SUPPORT and compare it with possible values
|
||||||
* documented
|
* documented
|
||||||
|
@ -321,8 +322,10 @@ static int adm1029_detect(struct i2c_client *client,
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
if ((chip_id & 0xF0) != 0x00) {
|
if ((chip_id & 0xF0) != 0x00) {
|
||||||
/* There are no "official" CHIP ID, so actually
|
/*
|
||||||
* we use Major/Minor revision for that */
|
* There are no "official" CHIP ID, so actually
|
||||||
|
* we use Major/Minor revision for that
|
||||||
|
*/
|
||||||
pr_info("adm1029: Unknown major revision %x, "
|
pr_info("adm1029: Unknown major revision %x, "
|
||||||
"please let us know\n", chip_id);
|
"please let us know\n", chip_id);
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
@ -407,8 +410,8 @@ static int adm1029_remove(struct i2c_client *client)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
function that update the status of the chips (temperature for example)
|
* function that update the status of the chips (temperature for example)
|
||||||
*/
|
*/
|
||||||
static struct adm1029_data *adm1029_update_device(struct device *dev)
|
static struct adm1029_data *adm1029_update_device(struct device *dev)
|
||||||
{
|
{
|
||||||
struct i2c_client *client = to_i2c_client(dev);
|
struct i2c_client *client = to_i2c_client(dev);
|
||||||
|
|
Loading…
Add table
Reference in a new issue