Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>

authored by

Zhang Rui and committed by
Richard Purdie
9be1df98 0ec561f4

+2 -4
+2 -4
drivers/video/backlight/backlight.c
··· 131 131 else { 132 132 pr_debug("backlight: set brightness to %lu\n", 133 133 brightness); 134 - if (bd->props.brightness != brightness) { 135 - bd->props.brightness = brightness; 136 - backlight_update_status(bd); 137 - } 134 + bd->props.brightness = brightness; 135 + backlight_update_status(bd); 138 136 rc = count; 139 137 } 140 138 }