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>
This commit is contained in:

committed by
Daniel Vetter

parent
6a9e736377
commit
055e393fa3
@@ -1598,7 +1598,7 @@ static bool intel_dp_get_hw_state(struct intel_encoder *encoder,
|
||||
return true;
|
||||
}
|
||||
|
||||
for_each_pipe(i) {
|
||||
for_each_pipe(dev_priv, i) {
|
||||
trans_dp = I915_READ(TRANS_DP_CTL(i));
|
||||
if ((trans_dp & TRANS_DP_PORT_SEL_MASK) == trans_sel) {
|
||||
*pipe = i;
|
||||
|
Reference in New Issue
Block a user