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)
commitb6b3ba5b22fc46736f3deb4c1d2300533c813a50
tree602fce810652306c9a6581bc154df7cc39feb58f
parent73c352a265e8fde47a8f4dde5c92c0c88bcb9b26
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