projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2a1d36
)
eeepc-laptop: no need to check argument of set_brightness()
author
Alan Jenkins
<alan-jenkins@tuffmail.co.uk>
Thu, 3 Dec 2009 07:45:01 +0000
(07:45 +0000)
committer
Len Brown
<len.brown@intel.com>
Wed, 9 Dec 2009 20:54:31 +0000
(15:54 -0500)
We already tell the backlight class our maximum brightness value; it
will validate the user requested values for us.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/eeepc-laptop.c
b/drivers/platform/x86/eeepc-laptop.c
index
f6b7796
..
9f33e51
100644
(file)
--- a/
drivers/platform/x86/eeepc-laptop.c
+++ b/
drivers/platform/x86/eeepc-laptop.c
@@
-326,7
+326,6
@@
static int read_brightness(struct backlight_device *bd)
static int set_brightness(struct backlight_device *bd, int value)
{
- value = max(0, min(15, value));
return set_acpi(CM_ASL_PANELBRIGHT, value);
}