drm/vc4: hvs: Use pointer to HVS in HVS_READ and HVS_WRITE macros
authorMaxime Ripard <maxime@cerno.tech>
Thu, 31 Mar 2022 14:37:44 +0000 (16:37 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 6 Apr 2022 13:18:01 +0000 (15:18 +0200)
commit3454f01abfa05a9534c841f87b22d3826cedcff4
treed53920a9a60c8bfb11b40563f7dfa3fc8bcb2698
parentd65661ace1880d6c0d4a34770c7b0d54e7675534
drm/vc4: hvs: Use pointer to HVS in HVS_READ and HVS_WRITE macros

Those macros are really about the HVS itself, and thus its associated
structure vc4_hvs, rather than the entire (virtual) vc4 device.

Let's change those macros to use the hvs pointer directly, and change
the calling sites accordingly.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://lore.kernel.org/r/20220331143744.777652-8-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_hvs.c
drivers/gpu/drm/vc4/vc4_kms.c