diff options
author | Mika Kahola <mika.kahola@intel.com> | 2016-12-13 11:02:47 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-12-13 18:25:26 +0300 |
commit | 1650be744d1b4bbd806ce0e80453ad090a7065c6 (patch) | |
tree | ac6a6627b2ab2eed6e074b6b40678eecbaf20e89 /drivers/gpu/drm/i915/intel_panel.c | |
parent | c1617abc48a062aed9a146a1009f1977d0da168d (diff) | |
download | linux-1650be744d1b4bbd806ce0e80453ad090a7065c6.tar.xz |
drm/i915: Intel panel detection cleanup
Let's switch to use private dev_priv instead of dev when detecting
intel panels.
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1481616169-16210-2-git-send-email-mika.kahola@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_panel.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_panel.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/intel_panel.c b/drivers/gpu/drm/i915/intel_panel.c index b01edceac650..095456ba6058 100644 --- a/drivers/gpu/drm/i915/intel_panel.c +++ b/drivers/gpu/drm/i915/intel_panel.c @@ -375,10 +375,8 @@ out: } enum drm_connector_status -intel_panel_detect(struct drm_device *dev) +intel_panel_detect(struct drm_i915_private *dev_priv) { - struct drm_i915_private *dev_priv = to_i915(dev); - /* Assume that the BIOS does not lie through the OpRegion... */ if (!i915.panel_ignore_lid && dev_priv->opregion.lid_state) { return *dev_priv->opregion.lid_state & 0x1 ? |