From 2010f594f236a8b4b71b04c022dda21a452f303a Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Thu, 13 Jan 2011 18:45:48 -0500 Subject: [PATCH] drm/i915/panel: Stub out {enable,disable,setup}_backlight. --- drivers/gpu/drm/i915/intel_panel.c | 19 ------------------- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index c65992d..c093487 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -253,31 +253,12 @@ void intel_panel_set_backlight(struct drm_device *dev, u32 level) void intel_panel_disable_backlight(struct drm_device *dev) { - struct drm_i915_private *dev_priv = dev->dev_private; - - if (dev_priv->backlight_enabled) { - dev_priv->backlight_level = intel_panel_get_backlight(dev); - dev_priv->backlight_enabled = false; - } - - intel_panel_set_backlight(dev, 0); } void intel_panel_enable_backlight(struct drm_device *dev) { - struct drm_i915_private *dev_priv = dev->dev_private; - - if (dev_priv->backlight_level == 0) - dev_priv->backlight_level = intel_panel_get_max_backlight(dev); - - intel_panel_set_backlight(dev, dev_priv->backlight_level); - dev_priv->backlight_enabled = true; } void intel_panel_setup_backlight(struct drm_device *dev) { - struct drm_i915_private *dev_priv = dev->dev_private; - - dev_priv->backlight_level = intel_panel_get_backlight(dev); - dev_priv->backlight_enabled = dev_priv->backlight_level != 0; } -- 1.7.3.4