]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Rename and inline i915_gem_context_get()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 May 2016 13:53:36 +0000 (14:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 May 2016 14:28:29 +0000 (15:28 +0100)
commit4797d0d2c851b95e60ddd4e416f1d2a21899571c
tree27814ad28bb19a21c47e236f5e3cc8854f83283c
parent8b0d00ccb299fa53fe84aff20ed55d5de904bee8
drm/i915: Rename and inline i915_gem_context_get()

i915_gem_context_get() is a very simple wrapper around idr_find(), so
simple that it would be smaller to do the lookup inline. Also we use the
verb 'lookup' to return a pointer from a handle, freeing 'get' to imply
obtaining a reference to the context.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464098023-3294-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c