diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2010-03-08 15:35:02 +0300 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-03-25 21:06:17 +0300 |
commit | 23010e43b353c2cdc9725cbedc7e364708039bf7 (patch) | |
tree | c0615881eabefb7b26a7f7dba23a5e00ea5a2398 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 8d06a1e1e9c69244f08beb7d17146483f9dcd120 (diff) | |
download | linux-23010e43b353c2cdc9725cbedc7e364708039bf7.tar.xz |
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_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 1376dfe44c95..bb3a4a8aba08 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -225,7 +225,7 @@ static int i915_gem_fence_regs_info(struct seq_file *m, void *data) } else { struct drm_i915_gem_object *obj_priv; - obj_priv = obj->driver_private; + obj_priv = to_intel_bo(obj); seq_printf(m, "Fenced object[%2d] = %p: %s " "%08x %08zx %08x %s %08x %08x %d", i, obj, get_pin_flag(obj_priv), |