mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-04 16:57:10 -05:00
eeepc-laptop: no need to check argument of set_brightness()
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user