提交 9be1df98 编写于 作者: Z Zhang Rui 提交者: Richard Purdie

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=12249Signed-off-by: NZhang Rui <rui.zhang@intel.com>
Signed-off-by: NRichard Purdie <rpurdie@linux.intel.com>
上级 0ec561f4
......@@ -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);
}
bd->props.brightness = brightness;
backlight_update_status(bd);
rc = count;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册