summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorA.Sunil Kamath <sunil.kamath@intel.com>2016-11-20 23:20:26 +0530
committerAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2016-11-21 13:49:53 +0200
commit58415918d4432d22f4ff9d3b2e2e8959cfb716cb (patch)
tree493fcc65b40b097895aea3bdbbf82b4d3e54eded /drivers/gpu/drm/i915/i915_debugfs.c
parent381744f8062239c3e08b9c79f8f7941c521d46c2 (diff)
downloadblackbird-op-linux-58415918d4432d22f4ff9d3b2e2e8959cfb716cb.tar.gz
blackbird-op-linux-58415918d4432d22f4ff9d3b2e2e8959cfb716cb.zip
drm/i915: Use num_scalers instead of SKL_NUM_SCALERS in debugfs
Better to use num_scaler itself while printing scaler_info. This fixes a bug of printing information for the missing second scaler on pipe C for SKL platform. Signed-off-by: A.Sunil Kamath <sunil.kamath@intel.com> Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1479664226-22307-1-git-send-email-sunil.kamath@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r--drivers/gpu/drm/i915/i915_debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 96407f684f7f..fb47efdfb448 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -3080,7 +3080,7 @@ static void intel_scaler_info(struct seq_file *m, struct intel_crtc *intel_crtc)
pipe_config->scaler_state.scaler_users,
pipe_config->scaler_state.scaler_id);
- for (i = 0; i < SKL_NUM_SCALERS; i++) {
+ for (i = 0; i < num_scalers; i++) {
struct intel_scaler *sc =
&pipe_config->scaler_state.scalers[i];
OpenPOWER on IntegriCloud