OSDN Git Service

drm/i915: Drop unused AUX register offsets
authorMatt Roper <matthew.d.roper@intel.com>
Sat, 26 Oct 2019 05:12:26 +0000 (22:12 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 29 Oct 2019 17:48:53 +0000 (10:48 -0700)
commit47c41af7069668eed9bf7e51467557bd6cb3d599
tree9df6ceae6378e738fd05005c47756fb8b0bba74d
parentb79029b2e859d8cef534643a1254a833459038f1
drm/i915: Drop unused AUX register offsets

We reference DP AUX registers via the DP_AUX_CH_CTL() and
DP_AUX_CH_DATA() macros that calculate all the register offsets for us
automatically; there's no need to explicitly define every offset in
i915_reg.h if they're never going to be used by the driver code.

v2: Apparently GVT was directly using these raw definitions in a couple
    places.  Switch GVT code over to using our preferred macros.

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20191026051226.30807-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gvt/handlers.c
drivers/gpu/drm/i915/i915_reg.h