Skip to content

Commit

Permalink
platform/x86: (eeepc-laptop) Replace SENSORS_LIMIT with clamp_val
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guenter Roeck committed Jan 26, 2013
1 parent 2a844c1 commit c73bad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c73bad7

Please sign in to comment.