diff options
author | Marta Lofstedt <marta.lofstedt@intel.com> | 2016-12-09 10:27:09 +0200 |
---|---|---|
committer | Martin Peres <martin.peres@linux.intel.com> | 2017-01-23 10:29:45 +0200 |
commit | 24ac70c94391548487103f8832cb4d93eeed68e6 (patch) | |
tree | 22917751d8281f515eb5525378aea283d2020dbe /drivers | |
parent | 26c20754e7adbabc1d15cc566b127861cabde86b (diff) |
i915: remove backlight initializationbacklight
The backlight initialization value is set by drm backlight.
Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 02c08ab21b3b..a859c24eedf9 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -1100,15 +1100,6 @@ void intel_panel_enable_backlight(struct intel_connector *connector) WARN_ON(panel->backlight.max == 0); - if (panel->backlight.level <= panel->backlight.min) { - panel->backlight.level = panel->backlight.max; - if (panel->backlight.device) - panel->backlight.device->props.brightness = - scale_hw_to_user(connector, - panel->backlight.level, - panel->backlight.device->props.max_brightness); - } - panel->backlight.enable(connector); panel->backlight.enabled = true; if (panel->backlight.device) |