]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: return actual brightness to .get_brightness callback
authorJani Nikula <jani.nikula@intel.com>
Tue, 12 Mar 2013 09:44:16 +0000 (11:44 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Mar 2013 20:06:08 +0000 (21:06 +0100)
commit5ccd993f33136a4e5aad5c7feb898ae3764a72ba
tree8c9aae79509f91401f20c4f5b01828f6f4c6760d
parent6ff9117ebe1d9d9cc14cfd44391b570957e59df5
drm/i915: return actual brightness to .get_brightness callback

The backlight device .get_brightness callback is supposed to return the
actual brightness by querying the hardware, not the cached value. See
Documentation/ABI/stable/sysfs-class-backlight. The callback is there to
support the actual_brightness sysfs file.

With the backlight_level and backlight device brightness now in sync, one
can reliably get the cached value through the brightness sysfs file.

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