aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/pcf8591.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/pcf8591.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/pcf8591.c')
-rw-r--r--drivers/hwmon/pcf8591.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/pcf8591.c b/drivers/hwmon/pcf8591.c
index 731b09af76b9..2041155a9fa3 100644
--- a/drivers/hwmon/pcf8591.c
+++ b/drivers/hwmon/pcf8591.c
@@ -269,9 +269,9 @@ static int pcf8591_read_channel(struct device *dev, int channel)
269 269
270 if ((channel == 2 && input_mode == 2) || 270 if ((channel == 2 && input_mode == 2) ||
271 (channel != 3 && (input_mode == 1 || input_mode == 3))) 271 (channel != 3 && (input_mode == 1 || input_mode == 3)))
272 return (10 * REG_TO_SIGNED(value)); 272 return 10 * REG_TO_SIGNED(value);
273 else 273 else
274 return (10 * value); 274 return 10 * value;
275} 275}
276 276
277static const struct i2c_device_id pcf8591_id[] = { 277static const struct i2c_device_id pcf8591_id[] = {