aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83793.c
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2012-01-05 13:50:18 -0500
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-03-18 21:26:29 -0400
commit7fe83ad877321f44c8141b8334bd2f6614deb739 (patch)
treedb3f22563dd76bf600c171bdd4bb2730b699b101 /drivers/hwmon/w83793.c
parenta6bee4a5571d24b9ba7c98f6becc7c45312a537d (diff)
hwmon: remove () used with return
fix checkpatch ERROR: return is not a function, parentheses are not required Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/w83793.c')
-rw-r--r--drivers/hwmon/w83793.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c
index 45ec7e7c3c27..d10ae4da1587 100644
--- a/drivers/hwmon/w83793.c
+++ b/drivers/hwmon/w83793.c
@@ -181,7 +181,7 @@ static inline unsigned long FAN_FROM_REG(u16 val)
181{ 181{
182 if ((val >= 0xfff) || (val == 0)) 182 if ((val >= 0xfff) || (val == 0))
183 return 0; 183 return 0;
184 return (1350000UL / val); 184 return 1350000UL / val;
185} 185}
186 186
187static inline u16 FAN_TO_REG(long rpm) 187static inline u16 FAN_TO_REG(long rpm)
@@ -193,7 +193,7 @@ static inline u16 FAN_TO_REG(long rpm)
193 193
194static inline unsigned long TIME_FROM_REG(u8 reg) 194static inline unsigned long TIME_FROM_REG(u8 reg)
195{ 195{
196 return (reg * 100); 196 return reg * 100;
197} 197}
198 198
199static inline u8 TIME_TO_REG(unsigned long val) 199static inline u8 TIME_TO_REG(unsigned long val)
@@ -203,7 +203,7 @@ static inline u8 TIME_TO_REG(unsigned long val)
203 203
204static inline long TEMP_FROM_REG(s8 reg) 204static inline long TEMP_FROM_REG(s8 reg)
205{ 205{
206 return (reg * 1000); 206 return reg * 1000;
207} 207}
208 208
209static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) 209static inline s8 TEMP_TO_REG(long val, s8 min, s8 max)