diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-04 17:16:39 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-01-05 11:19:35 -0500 |
commit | a01a68472cb6bf9de31e1980399dd09baeab0d38 (patch) | |
tree | 9169fe43399613b46a3fbff7953256f2ff771b43 /drivers/hwmon/lm75.h | |
parent | 66b3b1f757f5cfccedab9f39e7ef176342060735 (diff) |
hwmon: (lm75) fix checkpatch warnings
Fix checkpatch warnings in lm75.h include file
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Diffstat (limited to 'drivers/hwmon/lm75.h')
-rw-r--r-- | drivers/hwmon/lm75.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/lm75.h b/drivers/hwmon/lm75.h index e547a3eb4de3..89aa9098ba5b 100644 --- a/drivers/hwmon/lm75.h +++ b/drivers/hwmon/lm75.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | lm75.h - Part of lm_sensors, Linux kernel modules for hardware | 2 | lm75.h - Part of lm_sensors, Linux kernel modules for hardware |
3 | monitoring | 3 | monitoring |
4 | Copyright (c) 2003 Mark M. Hoffman <mhoffman@lightlink.com> | 4 | Copyright (c) 2003 Mark M. Hoffman <mhoffman@lightlink.com> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
@@ -37,7 +37,7 @@ | |||
37 | static inline u16 LM75_TEMP_TO_REG(long temp) | 37 | static inline u16 LM75_TEMP_TO_REG(long temp) |
38 | { | 38 | { |
39 | int ntemp = SENSORS_LIMIT(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); | 39 | int ntemp = SENSORS_LIMIT(temp, LM75_TEMP_MIN, LM75_TEMP_MAX); |
40 | ntemp += (ntemp<0 ? -250 : 250); | 40 | ntemp += (ntemp < 0 ? -250 : 250); |
41 | return (u16)((ntemp / 500) << 7); | 41 | return (u16)((ntemp / 500) << 7); |
42 | } | 42 | } |
43 | 43 | ||
@@ -47,4 +47,3 @@ static inline int LM75_TEMP_FROM_REG(u16 reg) | |||
47 | guarantee arithmetic shift and preserve the sign */ | 47 | guarantee arithmetic shift and preserve the sign */ |
48 | return ((s16)reg / 128) * 500; | 48 | return ((s16)reg / 128) * 500; |
49 | } | 49 | } |
50 | |||