Skip to contentSkip to conversation

i915: use plane enumerators in intel_pipe_set_base()

PATCH New Mariusz Kozlowski 1 participant 1 message Dec 25, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i915: use plane enumerators in intel_pipe_set_base()

'plane' is enumerated type so lets use proper enumerators.

---
 drivers/gpu/drm/i915/intel_display.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
index d9b7092..4515d2c 100644
@@ -1588,8 +1588,8 @@ intel_pipe_set_base(struct drm_crtc *crtc, int x, int y,
 	}
 
 	switch (intel_crtc->plane) {
-	case 0:
-	case 1:
+	case PLANE_A:
+	case PLANE_B:
 		break;
 	default:
 		return -EINVAL;
Signature · 1 line
1.7.0.4