summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2010-03-08 13:35:02 +0100
committerEric Anholt <eric@anholt.net>2010-03-25 11:06:17 -0700
commit23010e43b353c2cdc9725cbedc7e364708039bf7 (patch)
treec0615881eabefb7b26a7f7dba23a5e00ea5a2398 /drivers/gpu/drm/i915/i915_drv.h
parent8d06a1e1e9c69244f08beb7d17146483f9dcd120 (diff)
downloadtalos-obmc-linux-23010e43b353c2cdc9725cbedc7e364708039bf7.tar.gz
talos-obmc-linux-23010e43b353c2cdc9725cbedc7e364708039bf7.zip
drm/i915: introduce to_intel_bo helper
This is a purely cosmetic change to make changes in this area easier. And hey, it's not only clearer and typechecked, but actually shorter, too! [anholt: To clarify, this is a change to let us later make drm_i915_gem_object subclass drm_gem_object, instead of having drm_gem_object have a pointer to i915's private data] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Dave Airlie <airlied@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index aba8260fbc5e..b7cb4aadd059 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -731,6 +731,8 @@ struct drm_i915_gem_object {
atomic_t pending_flip;
};
+#define to_intel_bo(x) ((struct drm_i915_gem_object *) (x)->driver_private)
+
/**
* Request queue structure.
*
OpenPOWER on IntegriCloud