diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-01-09 11:11:57 -0500 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-01-26 00:03:54 -0500 |
commit | c73bad746cad97e438ccd148705907f20697288a (patch) | |
tree | 8f4bec068be7f87fc1f1796471f40c7813f533c6 /drivers/platform | |
parent | 2a844c148e1f714ebf42cb96e1b172ce394c36c9 (diff) |
platform/x86: (eeepc-laptop) Replace SENSORS_LIMIT with clamp_val
SENSORS_LIMIT and clamp_val have the same functionality, so retire SENSORS_LIMIT
as it is no longer needed.
The change reduces text size by 26 bytes and bss size by 16 bytes on x86_86
builds.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/eeepc-laptop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c index 528e9495458d..a5da0b594f71 100644 --- a/drivers/platform/x86/eeepc-laptop.c +++ b/drivers/platform/x86/eeepc-laptop.c | |||
@@ -1007,7 +1007,7 @@ static int eeepc_get_fan_pwm(void) | |||
1007 | 1007 | ||
1008 | static void eeepc_set_fan_pwm(int value) | 1008 | static void eeepc_set_fan_pwm(int value) |
1009 | { | 1009 | { |
1010 | value = SENSORS_LIMIT(value, 0, 255); | 1010 | value = clamp_val(value, 0, 255); |
1011 | value = value * 100 / 255; | 1011 | value = value * 100 / 255; |
1012 | ec_write(EEEPC_EC_FAN_PWM, value); | 1012 | ec_write(EEEPC_EC_FAN_PWM, value); |
1013 | } | 1013 | } |