]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use offsetof() to calculate the offset of members in PVINFO page
authorZhi Wang <zhi.a.wang@intel.com>
Thu, 16 Jun 2016 12:06:58 +0000 (08:06 -0400)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 18:44:25 +0000 (19:44 +0100)
commitd3eb4adb375aeea27454d5d3ef8a451d7cf00431
tree0b3c5271738c4ab1a8faf20d0e6b1e97a1916ab9
parent0e42ce0ae1b99c6ae5eac620711cb3401344d6cb
drm/i915: Use offsetof() to calculate the offset of members in PVINFO page

To get the offset of the members in PVINFO page, offsetof() looks much
better than the tricky approach in current code.

v7:

- Move "offsetof()" modification into a dedicated patch. (Joonas)

Suggested-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466078825-6662-3-git-send-email-zhi.a.wang@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_pvinfo.h