drm/i915/glk: Pass dev_priv to intel_atomic_setup_scalers()

Pass dev_priv to intel_atomic_setup_scalers(). The next patch will need
a dev_priv pointer.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223071600.14356-4-ander.conselvan.de.oliveira@intel.com
parent 5b7280f0
...@@ -121,7 +121,7 @@ intel_crtc_destroy_state(struct drm_crtc *crtc, ...@@ -121,7 +121,7 @@ intel_crtc_destroy_state(struct drm_crtc *crtc,
/** /**
* intel_atomic_setup_scalers() - setup scalers for crtc per staged requests * intel_atomic_setup_scalers() - setup scalers for crtc per staged requests
* @dev: DRM device * @dev_priv: i915 device
* @crtc: intel crtc * @crtc: intel crtc
* @crtc_state: incoming crtc_state to validate and setup scalers * @crtc_state: incoming crtc_state to validate and setup scalers
* *
...@@ -136,9 +136,9 @@ intel_crtc_destroy_state(struct drm_crtc *crtc, ...@@ -136,9 +136,9 @@ intel_crtc_destroy_state(struct drm_crtc *crtc,
* 0 - scalers were setup succesfully * 0 - scalers were setup succesfully
* error code - otherwise * error code - otherwise
*/ */
int intel_atomic_setup_scalers(struct drm_device *dev, int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,
struct intel_crtc *intel_crtc, struct intel_crtc *intel_crtc,
struct intel_crtc_state *crtc_state) struct intel_crtc_state *crtc_state)
{ {
struct drm_plane *plane = NULL; struct drm_plane *plane = NULL;
struct intel_plane *intel_plane; struct intel_plane *intel_plane;
...@@ -199,7 +199,7 @@ int intel_atomic_setup_scalers(struct drm_device *dev, ...@@ -199,7 +199,7 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
*/ */
if (!plane) { if (!plane) {
struct drm_plane_state *state; struct drm_plane_state *state;
plane = drm_plane_from_index(dev, i); plane = drm_plane_from_index(&dev_priv->drm, i);
state = drm_atomic_get_plane_state(drm_state, plane); state = drm_atomic_get_plane_state(drm_state, plane);
if (IS_ERR(state)) { if (IS_ERR(state)) {
DRM_DEBUG_KMS("Failed to add [PLANE:%d] to drm_state\n", DRM_DEBUG_KMS("Failed to add [PLANE:%d] to drm_state\n",
......
...@@ -11036,7 +11036,7 @@ static int intel_crtc_atomic_check(struct drm_crtc *crtc, ...@@ -11036,7 +11036,7 @@ static int intel_crtc_atomic_check(struct drm_crtc *crtc,
ret = skl_update_scaler_crtc(pipe_config); ret = skl_update_scaler_crtc(pipe_config);
if (!ret) if (!ret)
ret = intel_atomic_setup_scalers(dev, intel_crtc, ret = intel_atomic_setup_scalers(dev_priv, intel_crtc,
pipe_config); pipe_config);
} }
......
...@@ -1894,9 +1894,9 @@ intel_atomic_get_existing_plane_state(struct drm_atomic_state *state, ...@@ -1894,9 +1894,9 @@ intel_atomic_get_existing_plane_state(struct drm_atomic_state *state,
return to_intel_plane_state(plane_state); return to_intel_plane_state(plane_state);
} }
int intel_atomic_setup_scalers(struct drm_device *dev, int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,
struct intel_crtc *intel_crtc, struct intel_crtc *intel_crtc,
struct intel_crtc_state *crtc_state); struct intel_crtc_state *crtc_state);
/* intel_atomic_plane.c */ /* intel_atomic_plane.c */
struct intel_plane_state *intel_create_plane_state(struct drm_plane *plane); struct intel_plane_state *intel_create_plane_state(struct drm_plane *plane);
......
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