Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 951037ea authored by Alan Jenkins's avatar Alan Jenkins Committed by Len Brown
Browse files

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: default avatarAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent a2a1d36c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
}