From: Guenter Roeck Date: Wed, 9 Jan 2013 16:11:57 +0000 (-0800) Subject: platform/x86: (eeepc-laptop) Replace SENSORS_LIMIT with clamp_val X-Git-Tag: MMI-PSA29.97-13-9~15026^2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c73bad746cad97e438ccd148705907f20697288a;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Acked-by: Jean Delvare --- 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) static void eeepc_set_fan_pwm(int value) { - value = SENSORS_LIMIT(value, 0, 255); + value = clamp_val(value, 0, 255); value = value * 100 / 255; ec_write(EEEPC_EC_FAN_PWM, value); }