]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/panel: Only record the backlight level when it is enabled
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 17:06:04 +0000 (17:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 20:27:04 +0000 (20:27 +0000)
commit4ad3e38458d6cc3d2e181f46114103d2310c76f5
tree99281f2efc166c00930060dfa80d1af47509e2c8
parentbfcdd212643ff90e6a3fcd0d77aafa56cd16edf5
drm/i915/panel: Only record the backlight level when it is enabled

By tracking the current status of the backlight we can prevent recording
the value of the current backlight when we have disabled it. And so
prevent restoring it to 'off' after an unbalanced sequence of
intel_lvds_disable/enable.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=22672
Tested-by: Alex Riesen <raa.lkml@gmail.com>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lvds.c
drivers/gpu/drm/i915/intel_panel.c