Skip to content

Commit

Permalink
drm/i915/panel: The backlight is enabled if the current value is non-…
Browse files Browse the repository at this point in the history
…zero

... and not if the maximum is non-zero. This fixes the typo introduced
in 47356eb and preserves the backlight value from boot.

[ickle: My thanks also to Indan Zupancic for diagnosing the original
        regression and suggesting the appropriate fix.]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org # after 47356eb
  • Loading branch information
Indan Zupancic authored and Chris Wilson committed Jan 12, 2011
1 parent 833bcb0 commit c8303e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/intel_panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,6 @@ 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_max_backlight(dev);
dev_priv->backlight_level = intel_panel_get_backlight(dev);
dev_priv->backlight_enabled = dev_priv->backlight_level != 0;
}

0 comments on commit c8303e7

Please sign in to comment.