drm/i915: Use local pipe_config varariable when available
In functions that define a local pipe_config variable to point to crtc->config, replace remaining references to crtc->config with the local variable. This makes the code more consistent and easier to change in an automated manner. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
190f68c5e9
commit
681a8504a0
1 changed files with 3 additions and 3 deletions
|
@ -4605,7 +4605,7 @@ static void i9xx_pfit_enable(struct intel_crtc *crtc)
|
||||||
struct drm_i915_private *dev_priv = dev->dev_private;
|
struct drm_i915_private *dev_priv = dev->dev_private;
|
||||||
struct intel_crtc_state *pipe_config = &crtc->config;
|
struct intel_crtc_state *pipe_config = &crtc->config;
|
||||||
|
|
||||||
if (!crtc->config.gmch_pfit.control)
|
if (!pipe_config->gmch_pfit.control)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -5928,7 +5928,7 @@ static void vlv_prepare_pll(struct intel_crtc *crtc,
|
||||||
vlv_dpio_write(dev_priv, pipe, VLV_PLL_DW10(pipe),
|
vlv_dpio_write(dev_priv, pipe, VLV_PLL_DW10(pipe),
|
||||||
0x00d0000f);
|
0x00d0000f);
|
||||||
|
|
||||||
if (crtc->config.has_dp_encoder) {
|
if (pipe_config->has_dp_encoder) {
|
||||||
/* Use SSC source */
|
/* Use SSC source */
|
||||||
if (pipe == PIPE_A)
|
if (pipe == PIPE_A)
|
||||||
vlv_dpio_write(dev_priv, pipe, VLV_PLL_DW5(pipe),
|
vlv_dpio_write(dev_priv, pipe, VLV_PLL_DW5(pipe),
|
||||||
|
@ -7544,7 +7544,7 @@ static void intel_cpu_transcoder_get_m_n(struct intel_crtc *crtc,
|
||||||
void intel_dp_get_m_n(struct intel_crtc *crtc,
|
void intel_dp_get_m_n(struct intel_crtc *crtc,
|
||||||
struct intel_crtc_state *pipe_config)
|
struct intel_crtc_state *pipe_config)
|
||||||
{
|
{
|
||||||
if (crtc->config.has_pch_encoder)
|
if (pipe_config->has_pch_encoder)
|
||||||
intel_pch_transcoder_get_m_n(crtc, &pipe_config->dp_m_n);
|
intel_pch_transcoder_get_m_n(crtc, &pipe_config->dp_m_n);
|
||||||
else
|
else
|
||||||
intel_cpu_transcoder_get_m_n(crtc, pipe_config->cpu_transcoder,
|
intel_cpu_transcoder_get_m_n(crtc, pipe_config->cpu_transcoder,
|
||||||
|
|
Loading…
Add table
Reference in a new issue