aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83627hf.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/w83627hf.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/w83627hf.c')
-rw-r--r--drivers/hwmon/w83627hf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index 374118f2b9f9..ca4d378c7623 100644
--- a/drivers/hwmon/w83627hf.c
+++ b/drivers/hwmon/w83627hf.c
@@ -313,7 +313,7 @@ static inline unsigned long pwm_freq_from_reg(u8 reg)
313 /* This should not happen but anyway... */ 313 /* This should not happen but anyway... */
314 if (reg == 0) 314 if (reg == 0)
315 reg++; 315 reg++;
316 return (clock / (reg << 8)); 316 return clock / (reg << 8);
317} 317}
318static inline u8 pwm_freq_to_reg(unsigned long val) 318static inline u8 pwm_freq_to_reg(unsigned long val)
319{ 319{
@@ -321,11 +321,11 @@ static inline u8 pwm_freq_to_reg(unsigned long val)
321 if (val >= 93750) /* The highest we can do */ 321 if (val >= 93750) /* The highest we can do */
322 return 0x01; 322 return 0x01;
323 if (val >= 720) /* Use 24 MHz clock */ 323 if (val >= 720) /* Use 24 MHz clock */
324 return (24000000UL / (val << 8)); 324 return 24000000UL / (val << 8);
325 if (val < 6) /* The lowest we can do */ 325 if (val < 6) /* The lowest we can do */
326 return 0xFF; 326 return 0xFF;
327 else /* Use 180 kHz clock */ 327 else /* Use 180 kHz clock */
328 return (0x80 | (180000UL / (val << 8))); 328 return 0x80 | (180000UL / (val << 8));
329} 329}
330 330
331#define BEEP_MASK_FROM_REG(val) ((val) & 0xff7fff) 331#define BEEP_MASK_FROM_REG(val) ((val) & 0xff7fff)
@@ -342,7 +342,7 @@ static inline u8 DIV_TO_REG(long val)
342 break; 342 break;
343 val >>= 1; 343 val >>= 1;
344 } 344 }
345 return ((u8) i); 345 return (u8)i;
346} 346}
347 347
348/* For each registered chip, we need to keep some data in memory. 348/* For each registered chip, we need to keep some data in memory.