diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2014-08-18 08:49:10 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-03 05:03:43 -0400 |
commit | 055e393fa3ade8cb91d8229f1c76ca9a7b23b8b3 (patch) | |
tree | 473c88dd1b0a0aeb7f02b1038218ecfbbd153dea /drivers/gpu/drm/i915/i915_drv.h | |
parent | 6a9e7363775f699388f173bc4fba9c7c5a8626ae (diff) |
drm/i915: Use dev_priv as first argument of for_each_pipe()
Chris has decided that enough is enough. It's time to fixup dev Vs
dev_priv. This is a modest contribution to the crusade.
v2: Still use INTEL_INFO(), for the (mythical!) case we want to hardcode
the info struct with defines (Chris)
Rename the macro argument from 'dev' to 'dev_priv' (Jani)
v3: Use names unlikely to be used as macro arguments (Chris)
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 9c3677e4448e..de334d78e07c 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h | |||
@@ -163,7 +163,8 @@ enum hpd_pin { | |||
163 | I915_GEM_DOMAIN_INSTRUCTION | \ | 163 | I915_GEM_DOMAIN_INSTRUCTION | \ |
164 | I915_GEM_DOMAIN_VERTEX) | 164 | I915_GEM_DOMAIN_VERTEX) |
165 | 165 | ||
166 | #define for_each_pipe(p) for ((p) = 0; (p) < INTEL_INFO(dev)->num_pipes; (p)++) | 166 | #define for_each_pipe(__dev_priv, __p) \ |
167 | for ((__p) = 0; (__p) < INTEL_INFO(__dev_priv)->num_pipes; (__p)++) | ||
167 | #define for_each_sprite(p, s) for ((s) = 0; (s) < INTEL_INFO(dev)->num_sprites[(p)]; (s)++) | 168 | #define for_each_sprite(p, s) for ((s) = 0; (s) < INTEL_INFO(dev)->num_sprites[(p)]; (s)++) |
168 | 169 | ||
169 | #define for_each_crtc(dev, crtc) \ | 170 | #define for_each_crtc(dev, crtc) \ |