mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
drm/i915: pass dev_priv explicitly to DSPADDR_VLV
Avoid the implicit dev_priv local variable use, and pass dev_priv explicitly to the DSPADDR_VLV register macro. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/1d9be6b1eedd9240468a89cd3a10e8513caa33b1.1716469091.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
ee6af5de1c
commit
2468c0dd01
|
|
@ -577,7 +577,7 @@ vlv_primary_async_flip(struct intel_plane *plane,
|
|||
u32 dspaddr_offset = plane_state->view.color_plane[0].offset;
|
||||
enum i9xx_plane_id i9xx_plane = plane->i9xx_plane;
|
||||
|
||||
intel_de_write_fw(dev_priv, DSPADDR_VLV(i9xx_plane),
|
||||
intel_de_write_fw(dev_priv, DSPADDR_VLV(dev_priv, i9xx_plane),
|
||||
intel_plane_ggtt_offset(plane_state) + dspaddr_offset);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#include "intel_display_reg_defs.h"
|
||||
|
||||
#define _DSPAADDR_VLV 0x7017C /* vlv/chv */
|
||||
#define DSPADDR_VLV(plane) _MMIO_PIPE2(dev_priv, plane, _DSPAADDR_VLV)
|
||||
#define DSPADDR_VLV(dev_priv, plane) _MMIO_PIPE2(dev_priv, plane, _DSPAADDR_VLV)
|
||||
|
||||
#define _DSPACNTR 0x70180
|
||||
#define DSPCNTR(plane) _MMIO_PIPE2(dev_priv, plane, _DSPACNTR)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user