[Intel-gfx] [PATCH 2/2] drm/i915: Tidy the macro casting by using an inline function

Daniel Vetter daniel at ffwll.ch
Mon Aug 5 08:55:51 CEST 2013


On Fri, Aug 02, 2013 at 01:22:51PM -0300, Paulo Zanoni wrote:
> 2013/8/1 Chris Wilson <chris at chris-wilson.co.uk>:
> > Some of our macros we trying to convert from an drm_device to a
> > drm_i915_private and then use the pointer inline. This is not only
> > cumbersome but prone to error. Replacing it with a typesafe function
> > should help catch those errors in future.
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list