drm/i915: Use FBINFO_STATE defines instead of 0 and 1
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 10 Jun 2013 14:48:09 +0000 (15:48 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 10 Jun 2013 15:19:44 +0000 (17:19 +0200)
commitb6f3eff7130bbdb3d3ca5b7bbff2384b362606b4
tree02a24f172f00980146e34aa741f47d0116e0cada
parente596a02ccfc6503ae5c37b14c74b6b743eefe102
drm/i915: Use FBINFO_STATE defines instead of 0 and 1

This makes, arguably, the condition on state easier to read.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_fb.c