projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a844c1
)
platform/x86: (eeepc-laptop) Replace SENSORS_LIMIT with clamp_val
author
Guenter Roeck
<linux@roeck-us.net>
Wed, 9 Jan 2013 16:11:57 +0000
(08:11 -0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Sat, 26 Jan 2013 05:03:54 +0000
(21:03 -0800)
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>
drivers/platform/x86/eeepc-laptop.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/eeepc-laptop.c
b/drivers/platform/x86/eeepc-laptop.c
index 528e9495458d35f3396efeb6a3ce6e78e201bcd9..a5da0b594f71bcfcc88e17d07335beb3cd318d00 100644
(file)
--- 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);
}