drm/connector: Only register TV mode property if present
authorMaxime Ripard <maxime@cerno.tech>
Thu, 17 Nov 2022 09:28:46 +0000 (10:28 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 24 Nov 2022 11:42:39 +0000 (12:42 +0100)
commitaab5aaa760a3305d188612dd4a6ff4cde1b153d8
treec3ab74b37c9ad11b0bae4b057c69c9ba1bb0c314
parent1fd4a5a36f9f10aaad5d9b1b329c2c057d80a0e5
drm/connector: Only register TV mode property if present

The drm_create_tv_properties() will create the TV mode property
unconditionally.

However, since we'll gradually phase it out, let's register it only if we
have a list passed as an argument. This will make the transition easier.

Acked-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-3-256dad125326@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_connector.c