[PATCH] i915: use plane enumerators in intel_pipe_set_base()
Mariusz Kozlowski
mk at lab.zgora.pl
Sat Dec 25 06:29:03 PST 2010
'plane' is enumerated type so lets use proper enumerators.
Signed-off-by: Mariusz Kozlowski <mk at lab.zgora.pl>
---
drivers/gpu/drm/i915/intel_display.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d9b7092..4515d2c 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -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;
--
1.7.0.4
More information about the dri-devel
mailing list