From: Carlos Corbacho Date: Sat, 26 Dec 2009 19:24:31 +0000 (+0000) Subject: acer-wmi: Respect current backlight level when loading X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f6ef82cc9de24153ba7d5cedab5970e276aefa1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Carlos Corbacho Reported-by: Denis Mukhin Signed-off-by: Len Brown --- diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 07d14dfdf0b4..226b3e93498c 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev) acer_backlight_device = bd; bd->props.power = FB_BLANK_UNBLANK; - bd->props.brightness = max_brightness; + bd->props.brightness = read_brightness(bd); bd->props.max_brightness = max_brightness; backlight_update_status(bd); return 0;