diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-05 13:50:18 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:26:29 -0400 |
commit | 7fe83ad877321f44c8141b8334bd2f6614deb739 (patch) | |
tree | db3f22563dd76bf600c171bdd4bb2730b699b101 /drivers/hwmon/w83793.c | |
parent | a6bee4a5571d24b9ba7c98f6becc7c45312a537d (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.c | 6 |
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 | ||
187 | static inline u16 FAN_TO_REG(long rpm) | 187 | static inline u16 FAN_TO_REG(long rpm) |
@@ -193,7 +193,7 @@ static inline u16 FAN_TO_REG(long rpm) | |||
193 | 193 | ||
194 | static inline unsigned long TIME_FROM_REG(u8 reg) | 194 | static inline unsigned long TIME_FROM_REG(u8 reg) |
195 | { | 195 | { |
196 | return (reg * 100); | 196 | return reg * 100; |
197 | } | 197 | } |
198 | 198 | ||
199 | static inline u8 TIME_TO_REG(unsigned long val) | 199 | static inline u8 TIME_TO_REG(unsigned long val) |
@@ -203,7 +203,7 @@ static inline u8 TIME_TO_REG(unsigned long val) | |||
203 | 203 | ||
204 | static inline long TEMP_FROM_REG(s8 reg) | 204 | static inline long TEMP_FROM_REG(s8 reg) |
205 | { | 205 | { |
206 | return (reg * 1000); | 206 | return reg * 1000; |
207 | } | 207 | } |
208 | 208 | ||
209 | static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) | 209 | static inline s8 TEMP_TO_REG(long val, s8 min, s8 max) |