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>
This commit is contained in:
Daniel Vetter
2010-03-08 13:35:02 +01:00
committed by Eric Anholt
parent 8d06a1e1e9
commit 23010e43b3
10 changed files with 96 additions and 94 deletions

View File

@@ -443,7 +443,7 @@ i915_error_object_create(struct drm_device *dev,
if (src == NULL)
return NULL;
src_priv = src->driver_private;
src_priv = to_intel_bo(src);
if (src_priv->pages == NULL)
return NULL;