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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:15:18 +0000 (15:15 -0800)
commit3719e122dd3ae24d3419c261647bada674ff9246
tree369e77de7bdc5165ddf87ec021f8b09696b96114
parent8cf83d4ebcf7819cfe8c58774afee79462a25a8f
drm/i915/panel: Only record the backlight level when it is enabled

commit 47356eb67285014527a5ab87543ba1fae3d1e10a upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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