]> git.openfabrics.org - ~emulex/infiniband.git/commit
drm/i915: Introduce intel_fb_obj() macro
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 8 Jul 2014 01:21:47 +0000 (18:21 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Jul 2014 11:51:42 +0000 (13:51 +0200)
commit155e63696caab748da3f344f66de503038a72024
treebcbd4d3ba759ff783c0a9e9255f9e41000d8019e
parent1f767e02d69f6a37a86aa94fd2c7e2528ae1161e
drm/i915: Introduce intel_fb_obj() macro

Add an intel_fb_obj() macro that returns the GEM object associated with
a DRM framebuffer.  This macro is safe to call on NULL framebuffers (a
NULL object pointer will be returned in this case).

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_drv.h