[PATCH 42/65] drm/i915: pass dev_priv explicitly to _DSPBADDR
Rodrigo Vivi
rodrigo.vivi at intel.com
Thu Jun 6 16:08:00 UTC 2024
On Tue, Jun 04, 2024 at 06:26:00PM +0300, Jani Nikula wrote:
> Avoid the implicit dev_priv local variable use, and pass dev_priv
> explicitly to the _DSPBADDR register macro.
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> ---
> drivers/gpu/drm/i915/i915_reg.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 8390294aea5b..bcaa7c5b0c40 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -2309,7 +2309,7 @@
> #define _DSPBCNTR(dev_priv) (DISPLAY_MMIO_BASE(dev_priv) + 0x71180)
> #define DISP_ALPHA_TRANS_ENABLE REG_BIT(15)
> #define DISP_SPRITE_ABOVE_OVERLAY REG_BIT(0)
> -#define _DSPBADDR (DISPLAY_MMIO_BASE(dev_priv) + 0x71184)
> +#define _DSPBADDR(dev_priv) (DISPLAY_MMIO_BASE(dev_priv) + 0x71184)
ditto
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> #define _DSPBSTRIDE (DISPLAY_MMIO_BASE(dev_priv) + 0x71188)
> #define _DSPBPOS (DISPLAY_MMIO_BASE(dev_priv) + 0x7118C)
> #define _DSPBSIZE (DISPLAY_MMIO_BASE(dev_priv) + 0x71190)
> --
> 2.39.2
>
More information about the Intel-gfx
mailing list