drm/vc4: Switch to container_of_const
authorMaxime Ripard <maxime@cerno.tech>
Mon, 6 Mar 2023 10:46:42 +0000 (11:46 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Apr 2023 07:32:25 +0000 (09:32 +0200)
commit5a46e490e47e4d821c382288108f193fc88a9282
tree301fdd26bffd35e575679430e7c1bf45abb8743b
parent322d716a3e8a74fb75cd0f657647be4df253fd2f
drm/vc4: Switch to container_of_const

container_of_const() allows to preserve the pointer constness and is
thus more flexible than inline functions.

Let's switch all our instances of container_of() to
container_of_const().

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20221207-rpi-hdmi-improvements-v3-1-bdd54f66884e@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/tests/vc4_mock.h
drivers/gpu/drm/vc4/tests/vc4_mock_output.c
drivers/gpu/drm/vc4/vc4_dpi.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_dsi.c
drivers/gpu/drm/vc4/vc4_hdmi.h
drivers/gpu/drm/vc4/vc4_kms.c
drivers/gpu/drm/vc4/vc4_plane.c
drivers/gpu/drm/vc4/vc4_txp.c
drivers/gpu/drm/vc4/vc4_vec.c