]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dram: use intel_uncore_*() functions for register access
authorJani Nikula <jani.nikula@intel.com>
Tue, 25 Feb 2020 11:15:08 +0000 (13:15 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 27 Feb 2020 07:16:12 +0000 (09:16 +0200)
commit3c2eddc2d421762b91dbd0c00c6397f045068f8e
tree731f77d7b7a53b18566218eb03dff3fc59c0ff23
parentd28ae3b28187fd50a8eabe4befca71ec9ced9a5c
drm/i915/dram: use intel_uncore_*() functions for register access

The implicit "dev_priv" local variable use has been a long-standing pain
point in the register access macros I915_READ(), I915_WRITE(),
POSTING_READ(), I915_READ_FW(), and I915_WRITE_FW().

Replace them with the corresponding uncore register accessors
intel_uncore_read(), intel_uncore_write(), intel_uncore_posting_read(),
intel_uncore_read_fw(), and intel_uncore_write_fw().

Rename dev_priv to i915 while at it.

No functional changes.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200225111509.21879-2-jani.nikula@intel.com
drivers/gpu/drm/i915/intel_dram.c