aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/w83792d.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/w83792d.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/w83792d.c')
-rw-r--r--drivers/hwmon/w83792d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c
index d3100eab6b2f..0952a2cc0545 100644
--- a/drivers/hwmon/w83792d.c
+++ b/drivers/hwmon/w83792d.c
@@ -265,7 +265,7 @@ DIV_TO_REG(long val)
265 break; 265 break;
266 val >>= 1; 266 val >>= 1;
267 } 267 }
268 return ((u8) i); 268 return (u8)i;
269} 269}
270 270
271struct w83792d_data { 271struct w83792d_data {
@@ -333,7 +333,7 @@ static struct i2c_driver w83792d_driver = {
333static inline long in_count_from_reg(int nr, struct w83792d_data *data) 333static inline long in_count_from_reg(int nr, struct w83792d_data *data)
334{ 334{
335 /* in7 and in8 do not have low bits, but the formula still works */ 335 /* in7 and in8 do not have low bits, but the formula still works */
336 return ((data->in[nr] << 2) | ((data->low_bits >> (2 * nr)) & 0x03)); 336 return (data->in[nr] << 2) | ((data->low_bits >> (2 * nr)) & 0x03);
337} 337}
338 338
339/* The SMBus locks itself. The Winbond W83792D chip has a bank register, 339/* The SMBus locks itself. The Winbond W83792D chip has a bank register,