]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Agnostic INTEL_INFO
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 9 Aug 2014 18:18:43 +0000 (19:18 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 11:44:48 +0000 (13:44 +0200)
commita850e0241b6f49b421ff938065462c1ec9637cae
tree688df67fbdf4e5ef02bcd68ec07d699463d8075a
parent56e338c2485e3b26e9ce8d1b4ec07f3618109e86
drm/i915: Agnostic INTEL_INFO

Adapt the macro so that we can pass either the struct drm_device or the
struct drm_i915_private pointers and get the answer we want. Over time,
my plan is to convert all users over to using drm_i915_private and so
trimming down the pointer dance. Having spent a few hours chasing that
goal and achieved over 8k of object code saving, it appears to be a
worthwhile target. This interim macro allows us to slowly convert over.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Drop the (struct drm_device *) cast per the m-l discussion.
Also explain the seemingly unecessary first cast.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h