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

Commit 9be1df98 authored by Zhang Rui's avatar Zhang Rui Committed by Richard Purdie
Browse files

bd->props.brightness doesn't reflect the actual backlight level.

Always invoke backlight_update_status when users want to change
the backlight.

For setups where brightness change is an expensive operation,
this could be done in the driver rather than the core.

http://bugzilla.kernel.org/show_bug.cgi?id=12249



Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@linux.intel.com>
parent 0ec561f4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -131,10 +131,8 @@ static ssize_t backlight_store_brightness(struct device *dev,
		else {
			pr_debug("backlight: set brightness to %lu\n",
				 brightness);
			if (bd->props.brightness != brightness) {
			bd->props.brightness = brightness;
			backlight_update_status(bd);
			}
			rc = count;
		}
	}