]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: keep backlight_level and backlight device brightness in sync
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 Mar 2013 09:44:15 +0000 (11:44 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Mar 2013 20:06:03 +0000 (21:06 +0100)
commitfb54671604329045fe07c0167b0ccfc5f8e71765
tree602fce810652306c9a6581bc154df7cc39feb58f
parent60ba8a95de14c7e076d38573cbddfba48225cf05
drm/i915: keep backlight_level and backlight device brightness in sync

A single point of truth would be better than two, but achieving that would
require more abstractions for CONFIG_BACKLIGHT_CLASS_DEVICE=n with not a
whole lot of real benefits. Take the short route and just keep the
backlight levels in sync. In particular, update backlight device brightness
on opregion brightness changes.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_panel.c