Commit 3c22e232 authored by Guenter Roeck's avatar Guenter Roeck Committed by Guenter Roeck

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: default avatarGuenter Roeck <linux@roeck-us.net>
parent 3c56b066
...@@ -124,9 +124,9 @@ enum chips { smm465, smm665, smm665c, smm764, smm766 }; ...@@ -124,9 +124,9 @@ enum chips { smm465, smm665, smm665c, smm764, smm766 };
#define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512) #define SMM665_AIN_ADC_TO_VOLTS(adc) ((adc) * vref / 512)
/* Temp Sensor */ /* Temp Sensor */
#define SMM665_TEMP_ADC_TO_CELSIUS(adc) ((adc) <= 511) ? \ #define SMM665_TEMP_ADC_TO_CELSIUS(adc) (((adc) <= 511) ? \
((int)(adc) * 1000 / 4) : \ ((int)(adc) * 1000 / 4) : \
(((int)(adc) - 0x400) * 1000 / 4) (((int)(adc) - 0x400) * 1000 / 4))
#define SMM665_NUM_ADC 11 #define SMM665_NUM_ADC 11
...@@ -389,7 +389,8 @@ SMM665_SHOW(max); ...@@ -389,7 +389,8 @@ SMM665_SHOW(max);
SMM665_SHOW(lcrit); SMM665_SHOW(lcrit);
SMM665_SHOW(crit); SMM665_SHOW(crit);
/* These macros are used below in constructing device attribute objects /*
* These macros are used below in constructing device attribute objects
* for use with sysfs_create_group() to make a sysfs device file * for use with sysfs_create_group() to make a sysfs device file
* for each register. * for each register.
*/ */
......
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