* [PATCH] i915: use plane enumerators in intel_pipe_set_base()
@ 2010-12-25 14:29 Mariusz Kozlowski
0 siblings, 0 replies; only message in thread
From: Mariusz Kozlowski @ 2010-12-25 14:29 UTC (permalink / raw)
To: Chris Wilson, David Airlie; +Cc: dri-devel, linux-kernel, Mariusz Kozlowski
'plane' is enumerated type so lets use proper enumerators.
Signed-off-by: Mariusz Kozlowski <mk@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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-25 14:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-25 14:29 [PATCH] i915: use plane enumerators in intel_pipe_set_base() Mariusz Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).