diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-01-19 14:02:14 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:27:32 -0400 |
commit | 94b991d4c780b98bcf36451ab4839f35c19d5e32 (patch) | |
tree | a89c8b56ec3b735effd8dd6aba29a35697a0fdbd /drivers | |
parent | 27b9de3c4ae302c51d99187047e6ebebb21fd29b (diff) |
hwmon: (adm1029) Fix multi-line comments
Cc: Corentin Labbe <corentin.labbe@geomatys.fr>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hwmon/adm1029.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c index c6531a8cf258..80cc465d8ac7 100644 --- a/drivers/hwmon/adm1029.c +++ b/drivers/hwmon/adm1029.c | |||
@@ -240,9 +240,9 @@ static ssize_t set_fan_div(struct device *dev, | |||
240 | } | 240 | } |
241 | 241 | ||
242 | /* | 242 | /* |
243 | Access rights on sysfs, S_IRUGO stand for Is Readable by User, Group and Others | 243 | * Access rights on sysfs. S_IRUGO: Is Readable by User, Group and Others |
244 | S_IWUSR stand for Is Writable by User | 244 | * S_IWUSR: Is Writable by User. |
245 | */ | 245 | */ |
246 | static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0); | 246 | static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL, 0); |
247 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_temp, NULL, 1); | 247 | static SENSOR_DEVICE_ATTR(temp2_input, S_IRUGO, show_temp, NULL, 1); |
248 | static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, show_temp, NULL, 2); | 248 | static SENSOR_DEVICE_ATTR(temp3_input, S_IRUGO, show_temp, NULL, 2); |
@@ -303,7 +303,8 @@ static int adm1029_detect(struct i2c_client *client, | |||
303 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) | 303 | if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA)) |
304 | return -ENODEV; | 304 | return -ENODEV; |
305 | 305 | ||
306 | /* ADM1029 doesn't have CHIP ID, check just MAN ID | 306 | /* |
307 | * ADM1029 doesn't have CHIP ID, check just MAN ID | ||
307 | * For better detection we check also ADM1029_TEMP_DEVICES_INSTALLED, | 308 | * For better detection we check also ADM1029_TEMP_DEVICES_INSTALLED, |
308 | * ADM1029_REG_NB_FAN_SUPPORT and compare it with possible values | 309 | * ADM1029_REG_NB_FAN_SUPPORT and compare it with possible values |
309 | * documented | 310 | * documented |
@@ -321,8 +322,10 @@ static int adm1029_detect(struct i2c_client *client, | |||
321 | return -ENODEV; | 322 | return -ENODEV; |
322 | 323 | ||
323 | if ((chip_id & 0xF0) != 0x00) { | 324 | if ((chip_id & 0xF0) != 0x00) { |
324 | /* There are no "official" CHIP ID, so actually | 325 | /* |
325 | * we use Major/Minor revision for that */ | 326 | * There are no "official" CHIP ID, so actually |
327 | * we use Major/Minor revision for that | ||
328 | */ | ||
326 | pr_info("adm1029: Unknown major revision %x, " | 329 | pr_info("adm1029: Unknown major revision %x, " |
327 | "please let us know\n", chip_id); | 330 | "please let us know\n", chip_id); |
328 | return -ENODEV; | 331 | return -ENODEV; |
@@ -407,8 +410,8 @@ static int adm1029_remove(struct i2c_client *client) | |||
407 | } | 410 | } |
408 | 411 | ||
409 | /* | 412 | /* |
410 | function that update the status of the chips (temperature for example) | 413 | * function that update the status of the chips (temperature for example) |
411 | */ | 414 | */ |
412 | static struct adm1029_data *adm1029_update_device(struct device *dev) | 415 | static struct adm1029_data *adm1029_update_device(struct device *dev) |
413 | { | 416 | { |
414 | struct i2c_client *client = to_i2c_client(dev); | 417 | struct i2c_client *client = to_i2c_client(dev); |