diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-02-25 00:12:21 +0300 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-02-25 22:24:09 +0300 |
commit | c6a53c90e3be8b7e745a46c941631d0855648313 (patch) | |
tree | c3fdaf6019b38b7d5c7256c528591a9429b07d0c /drivers/gpu/drm/i915/i915_reg_defs.h | |
parent | 0eb1173422f648a503a2ed1a8364f2d8bd7f690c (diff) | |
download | linux-c6a53c90e3be8b7e745a46c941631d0855648313.tar.xz |
drm/i915: Move MCR_REG define to i915_reg_defs.h
Define MCR_REG() in the same header where i915_mcr_reg_t is defined,
like i915_reg_t and _MMIO(). It's a more natural place for such a
definition so it's not mixed with the registers for the platforms.
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230224211221.1557268-1-lucas.demarchi@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg_defs.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg_defs.h b/drivers/gpu/drm/i915/i915_reg_defs.h index 983c5aa3045b..db26de6b57bc 100644 --- a/drivers/gpu/drm/i915/i915_reg_defs.h +++ b/drivers/gpu/drm/i915/i915_reg_defs.h @@ -165,6 +165,8 @@ typedef struct { u32 reg; } i915_mcr_reg_t; +#define MCR_REG(offset) ((const i915_mcr_reg_t){ .reg = (offset) }) + #define INVALID_MMIO_REG _MMIO(0) /* |