]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/i915_drv.h
drm/i915: Tidy the macro casting by using an inline function
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Aug 2013 17:39:55 +0000 (18:39 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 Aug 2013 17:03:21 +0000 (19:03 +0200)
commit2c1792a10b10e41dcf34c97304fb8f75e52e7112
treee1173623fc7a2fbc05e98798d06bd6ca692475b5
parentb3ae96a8ea1cbd0970459b6efd7ea7550fe033c6
drm/i915: Tidy the macro casting by using an inline function

Some of our macros we trying to convert from an drm_device to a
drm_i915_private and then use the pointer inline. This is not only
cumbersome but prone to error. Replacing it with a typesafe function
should help catch those errors in future.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
[danvet: Squash in fixup to correctly order static vs. inline
qualifiers, static comes first. Also fix up another offender.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h