drm/atomic-helper: Add a TV properties reset helper
authorMaxime Ripard <maxime@cerno.tech>
Thu, 17 Nov 2022 09:28:56 +0000 (10:28 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 24 Nov 2022 11:42:40 +0000 (12:42 +0100)
commit00e77a697df29cadfbb78d4b14c357b07f3bb221
tree618440c5b5a892879095436168e048fcd67d256f
parent1e4a91db109f623d0e3ef7d8bfae3c88b4d2fa87
drm/atomic-helper: Add a TV properties reset helper

The drm_tv_create_properties() function will create a bunch of properties,
but it's up to each and every driver using that function to properly reset
the state of these properties leading to inconsistent behaviours.

Let's create a helper that will take care of it.

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-13-256dad125326@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_atomic_state_helper.c
include/drm/drm_atomic_state_helper.h