From: Chris Wilson Date: Thu, 1 Aug 2013 17:39:55 +0000 (+0100) Subject: drm/i915: Tidy the macro casting by using an inline function X-Git-Tag: v3.12-rc1~136^2~59^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c1792a10b10e41dcf34c97304fb8f75e52e7112;p=pandora-kernel.git 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 Reviewed-by: Paulo Zanoni Signed-off-by: Ben Widawsky [danvet: Squash in fixup to correctly order static vs. inline qualifiers, static comes first. Also fix up another offender.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed