Commit a318b4c4 authored by Mika Kahola's avatar Mika Kahola Committed by Jani Nikula

drm/i915: Intel panel downclock cleanup

Let's switch to use dev_priv instead of dev when calling
intel_find_panel_downclock() function.
Signed-off-by: default avatarMika Kahola <mika.kahola@intel.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1481616169-16210-3-git-send-email-mika.kahola@intel.com
parent 1650be74
...@@ -5528,7 +5528,7 @@ intel_dp_drrs_init(struct intel_connector *intel_connector, ...@@ -5528,7 +5528,7 @@ intel_dp_drrs_init(struct intel_connector *intel_connector,
} }
downclock_mode = intel_find_panel_downclock downclock_mode = intel_find_panel_downclock
(dev, fixed_mode, connector); (dev_priv, fixed_mode, connector);
if (!downclock_mode) { if (!downclock_mode) {
DRM_DEBUG_KMS("Downclock mode is not found. DRRS not supported\n"); DRM_DEBUG_KMS("Downclock mode is not found. DRRS not supported\n");
......
...@@ -1610,7 +1610,7 @@ void intel_panel_disable_backlight(struct intel_connector *connector); ...@@ -1610,7 +1610,7 @@ void intel_panel_disable_backlight(struct intel_connector *connector);
void intel_panel_destroy_backlight(struct drm_connector *connector); void intel_panel_destroy_backlight(struct drm_connector *connector);
enum drm_connector_status intel_panel_detect(struct drm_i915_private *dev_priv); enum drm_connector_status intel_panel_detect(struct drm_i915_private *dev_priv);
extern struct drm_display_mode *intel_find_panel_downclock( extern struct drm_display_mode *intel_find_panel_downclock(
struct drm_device *dev, struct drm_i915_private *dev_priv,
struct drm_display_mode *fixed_mode, struct drm_display_mode *fixed_mode,
struct drm_connector *connector); struct drm_connector *connector);
......
...@@ -48,7 +48,7 @@ intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode, ...@@ -48,7 +48,7 @@ intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode,
/** /**
* intel_find_panel_downclock - find the reduced downclock for LVDS in EDID * intel_find_panel_downclock - find the reduced downclock for LVDS in EDID
* @dev: drm device * @dev_priv: i915 device instance
* @fixed_mode : panel native mode * @fixed_mode : panel native mode
* @connector: LVDS/eDP connector * @connector: LVDS/eDP connector
* *
...@@ -56,7 +56,7 @@ intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode, ...@@ -56,7 +56,7 @@ intel_fixed_panel_mode(const struct drm_display_mode *fixed_mode,
* Find the reduced downclock for LVDS/eDP in EDID. * Find the reduced downclock for LVDS/eDP in EDID.
*/ */
struct drm_display_mode * struct drm_display_mode *
intel_find_panel_downclock(struct drm_device *dev, intel_find_panel_downclock(struct drm_i915_private *dev_priv,
struct drm_display_mode *fixed_mode, struct drm_display_mode *fixed_mode,
struct drm_connector *connector) struct drm_connector *connector)
{ {
...@@ -94,7 +94,7 @@ intel_find_panel_downclock(struct drm_device *dev, ...@@ -94,7 +94,7 @@ intel_find_panel_downclock(struct drm_device *dev,
} }
if (temp_downclock < fixed_mode->clock) if (temp_downclock < fixed_mode->clock)
return drm_mode_duplicate(dev, tmp_mode); return drm_mode_duplicate(&dev_priv->drm, tmp_mode);
else else
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment