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

Commit 6f6ef82c authored by Carlos Corbacho's avatar Carlos Corbacho Committed by Len Brown
Browse files

acer-wmi: Respect current backlight level when loading



Set the backlight to use the current brightness when loaded, rather than
always resetting the backlight to maximum brightness.

Fixes kernel bugzilla #14207

Signed-off-by: default avatarCarlos Corbacho <carlos@strangeworlds.co.uk>
Reported-by: default avatarDenis Mukhin <denis_mukhin@yahoo.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent f8b55f25
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev)
	acer_backlight_device = bd;
	acer_backlight_device = bd;


	bd->props.power = FB_BLANK_UNBLANK;
	bd->props.power = FB_BLANK_UNBLANK;
	bd->props.brightness = max_brightness;
	bd->props.brightness = read_brightness(bd);
	bd->props.max_brightness = max_brightness;
	bd->props.max_brightness = max_brightness;
	backlight_update_status(bd);
	backlight_update_status(bd);
	return 0;
	return 0;