drm/sun4i: hdmi: Switch to container_of_const
authorMaxime Ripard <mripard@kernel.org>
Thu, 22 Feb 2024 18:14:20 +0000 (19:14 +0100)
committerMaxime Ripard <mripard@kernel.org>
Mon, 26 Feb 2024 09:33:04 +0000 (10:33 +0100)
commitc6686f274d5ede72a18e2680e844a4c5f5855401
tree0914e4f725097d9b0ac466e2c9aa5f7e84a5fcbf
parent9ca6bc2460359ed49b0ee87467fea784b1a42bf5
drm/sun4i: hdmi: 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: Sui Jingfeng <sui.jingfeng@linux.dev>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222-kms-hdmi-connector-state-v7-34-8f4af575fce2@kernel.org
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c