[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1293287343-7751-1-git-send-email-mk@lab.zgora.pl>
Date: Sat, 25 Dec 2010 15:29:03 +0100
From: Mariusz Kozlowski <mk@....zgora.pl>
To: Chris Wilson <chris@...is-wilson.co.uk>,
David Airlie <airlied@...ux.ie>
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
Mariusz Kozlowski <mk@....zgora.pl>
Subject: [PATCH] i915: use plane enumerators in intel_pipe_set_base()
'plane' is enumerated type so lets use proper enumerators.
Signed-off-by: Mariusz Kozlowski <mk@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists