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/f71805f.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/f71805f.c')
-rw-r--r-- | drivers/hwmon/f71805f.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/hwmon/f71805f.c b/drivers/hwmon/f71805f.c index 6dbfd3e516e4..2309be5b1861 100644 --- a/drivers/hwmon/f71805f.c +++ b/drivers/hwmon/f71805f.c | |||
@@ -202,7 +202,7 @@ struct f71805f_sio_data { | |||
202 | 202 | ||
203 | static inline long in_from_reg(u8 reg) | 203 | static inline long in_from_reg(u8 reg) |
204 | { | 204 | { |
205 | return (reg * 8); | 205 | return reg * 8; |
206 | } | 206 | } |
207 | 207 | ||
208 | /* The 2 least significant bits are not used */ | 208 | /* The 2 least significant bits are not used */ |
@@ -212,13 +212,13 @@ static inline u8 in_to_reg(long val) | |||
212 | return 0; | 212 | return 0; |
213 | if (val >= 2016) | 213 | if (val >= 2016) |
214 | return 0xfc; | 214 | return 0xfc; |
215 | return (((val + 16) / 32) << 2); | 215 | return ((val + 16) / 32) << 2; |
216 | } | 216 | } |
217 | 217 | ||
218 | /* in0 is downscaled by a factor 2 internally */ | 218 | /* in0 is downscaled by a factor 2 internally */ |
219 | static inline long in0_from_reg(u8 reg) | 219 | static inline long in0_from_reg(u8 reg) |
220 | { | 220 | { |
221 | return (reg * 16); | 221 | return reg * 16; |
222 | } | 222 | } |
223 | 223 | ||
224 | static inline u8 in0_to_reg(long val) | 224 | static inline u8 in0_to_reg(long val) |
@@ -227,7 +227,7 @@ static inline u8 in0_to_reg(long val) | |||
227 | return 0; | 227 | return 0; |
228 | if (val >= 4032) | 228 | if (val >= 4032) |
229 | return 0xfc; | 229 | return 0xfc; |
230 | return (((val + 32) / 64) << 2); | 230 | return ((val + 32) / 64) << 2; |
231 | } | 231 | } |
232 | 232 | ||
233 | /* The 4 most significant bits are not used */ | 233 | /* The 4 most significant bits are not used */ |
@@ -236,7 +236,7 @@ static inline long fan_from_reg(u16 reg) | |||
236 | reg &= 0xfff; | 236 | reg &= 0xfff; |
237 | if (!reg || reg == 0xfff) | 237 | if (!reg || reg == 0xfff) |
238 | return 0; | 238 | return 0; |
239 | return (1500000 / reg); | 239 | return 1500000 / reg; |
240 | } | 240 | } |
241 | 241 | ||
242 | static inline u16 fan_to_reg(long rpm) | 242 | static inline u16 fan_to_reg(long rpm) |
@@ -246,7 +246,7 @@ static inline u16 fan_to_reg(long rpm) | |||
246 | so that no alarm will ever trigger. */ | 246 | so that no alarm will ever trigger. */ |
247 | if (rpm < 367) | 247 | if (rpm < 367) |
248 | return 0xfff; | 248 | return 0xfff; |
249 | return (1500000 / rpm); | 249 | return 1500000 / rpm; |
250 | } | 250 | } |
251 | 251 | ||
252 | static inline unsigned long pwm_freq_from_reg(u8 reg) | 252 | static inline unsigned long pwm_freq_from_reg(u8 reg) |
@@ -278,7 +278,7 @@ static inline int pwm_mode_from_reg(u8 reg) | |||
278 | 278 | ||
279 | static inline long temp_from_reg(u8 reg) | 279 | static inline long temp_from_reg(u8 reg) |
280 | { | 280 | { |
281 | return (reg * 1000); | 281 | return reg * 1000; |
282 | } | 282 | } |
283 | 283 | ||
284 | static inline u8 temp_to_reg(long val) | 284 | static inline u8 temp_to_reg(long val) |