drm/vc4: vec: Refactor VEC TV mode setting
authorMateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Mon, 29 Aug 2022 13:11:40 +0000 (15:11 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 7 Sep 2022 08:14:45 +0000 (10:14 +0200)
commit38baec94ca584b7370c78b0fc445ef5def269ac6
treef1d14e795443b67080f66b16803e8fc4803d45c3
parent336f29e0f8564e317e42b9eef6e2c17e838944f4
drm/vc4: vec: Refactor VEC TV mode setting

Change the mode_set function pointer logic to declarative config0,
config1 and custom_freq fields, to make TV mode setting logic more
concise and uniform.

Signed-off-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
[Maxime: Fixed != 0 check, added tv_mode variable]
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220728-rpi-analog-tv-properties-v2-26-459522d653a7@cerno.tech
drivers/gpu/drm/vc4/vc4_vec.c