]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a019093b33a4e5bc2d0d612cfd873e230daed43
treed53920a9a60c8bfb11b40563f7dfa3fc8bcb2698
parent43ba67e5216034ed460ceceeb967e1202cb0f97a
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