aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/smm665.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-01-20 12:34:50 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-18 21:26:54 -0400
commit3c22e2326015e79822837aaa44eaf15249f8af7b (patch)
treea0a27e4b9dfe212964c13941d8bc9f306dc9f935 /drivers/hwmon/smm665.c
parent3c56b066fb62e4aee95e4b3acff35296765a25d1 (diff)
hwmon: (smm665) Fix checkpatch error
Fix: ERROR: Macros with complex values should be enclosed in parenthesis Also updated multi-line comments to follow Documentation/CodingStyle. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/smm665.c')
-rw-r--r--drivers/hwmon/smm665.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/hwmon/smm665.c b/drivers/hwmon/smm665.c
index 24382c735e5..5877078aaca 100644
--- a/drivers/hwmon/smm665.c
+++ b/drivers/hwmon/smm665.c
@@ -124,9 +124,9 @@ enum chips { smm465, smm665, smm665c, smm764, smm766 };
124#define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512) 124#define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512)
125 125
126/* Temp Sensor */ 126/* Temp Sensor */
127#define SMM665_TEMP_ADC_TO_CELSIUS(adc) ((adc) <= 511) ? \ 127#define SMM665_TEMP_ADC_TO_CELSIUS(adc) (((adc) <= 511) ? \
128 ((int)(adc) * 1000 / 4) : \ 128 ((int)(adc) * 1000 / 4) : \
129 (((int)(adc) - 0x400) * 1000 / 4) 129 (((int)(adc) - 0x400) * 1000 / 4))
130 130
131#define SMM665_NUM_ADC 11 131#define SMM665_NUM_ADC 11
132 132
@@ -389,7 +389,8 @@ SMM665_SHOW(max);
389SMM665_SHOW(lcrit); 389SMM665_SHOW(lcrit);
390SMM665_SHOW(crit); 390SMM665_SHOW(crit);
391 391
392/* These macros are used below in constructing device attribute objects 392/*
393 * These macros are used below in constructing device attribute objects
393 * for use with sysfs_create_group() to make a sysfs device file 394 * for use with sysfs_create_group() to make a sysfs device file
394 * for each register. 395 * for each register.
395 */ 396 */