]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36873e2cf0a9db0c4cf37486177f4397a472714c
treee1173623fc7a2fbc05e98798d06bd6ca692475b5
parent10475a8c1e764319f65d058309aa4d6942e4d5c5
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