drm/rockchip: inno_hdmi: Move infoframe disable to separate function
authorMaxime Ripard <mripard@kernel.org>
Fri, 22 Dec 2023 17:42:05 +0000 (18:42 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 29 Dec 2023 23:38:23 +0000 (00:38 +0100)
commitcc9ec38cb2cd32518fe02615d004e96ce2fd0348
tree510ef65e3c57ef5446e88ca7fe2c0fa6a956c267
parentaa4f96e2de82f5e0dfc0102d08f66918c5e3637f
drm/rockchip: inno_hdmi: Move infoframe disable to separate function

The code to upload infoframes to the controller uses a weird construct
which, based on the previous function call return code, will either
disable or enable that infoframe.

In order to get rid of that argument, let's split the function to
disable the infoframe into a separate function and make it obvious what
we are doing in the error path.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222174220.55249-15-knaerzche@gmail.com
drivers/gpu/drm/rockchip/inno_hdmi.c