]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: refactor register fw read/write macros for recent GENs
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Sat, 4 Feb 2017 01:23:29 +0000 (17:23 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Feb 2017 08:55:40 +0000 (08:55 +0000)
commit07ea410dbc7ea39b6426bc580b35bd6297f2ab63
treef034c8e336e4c8834c141721592575b8c9d497b1
parentca2ffa34a3d84d3a6254a9edeaf79c43855d8bfb
drm/i915: refactor register fw read/write macros for recent GENs

The only difference for the more recent of those macros is the version
of the *_reg_<read/write>_fw_domains function. Passing the function
prefix in allows us to re-use the same macro to generate functions for
different GENs and will make it easier to add new accessors in the future

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1486171409-21542-1-git-send-email-daniele.ceraolospurio@intel.com
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_uncore.c