diff options
author | Jani Nikula <jani.nikula@intel.com> | 2016-03-16 13:43:33 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-03-16 19:28:50 +0300 |
commit | 92c4565e93609314b34bb810ba54cb73eb006987 (patch) | |
tree | 482b902f3c8f1419918cda2734c66bc9e1dd9da1 /drivers/gpu/drm/i915/intel_panel.c | |
parent | 7137aec1cfd3fd417023ce4edd0f348e5d72115f (diff) | |
download | linux-92c4565e93609314b34bb810ba54cb73eb006987.tar.xz |
drm/i915/panel: setup pwm backlight based on connector type
Use the connector type instead of VBT directly to decide which backlight
mechanism to use on VLV/CHV. (Indirectly, this is the same thing, but
hides the VBT use.)
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458125015-7931-5-git-send-email-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index 0fe059bc7d80..8c8996fcbaf5 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -1743,7 +1743,7 @@ intel_panel_init_backlight_funcs(struct intel_panel *panel) panel->backlight.get = pch_get_backlight; panel->backlight.hz_to_pwm = pch_hz_to_pwm; } else if (IS_VALLEYVIEW(dev_priv) || IS_CHERRYVIEW(dev_priv)) { - if (dev_priv->vbt.has_mipi) { + if (connector->base.connector_type == DRM_MODE_CONNECTOR_DSI) { panel->backlight.setup = pwm_setup_backlight; panel->backlight.enable = pwm_enable_backlight; panel->backlight.disable = pwm_disable_backlight; |