drm/client: Add some tests for drm_connector_pick_cmdline_mode()
authorMaxime Ripard <maxime@cerno.tech>
Mon, 14 Nov 2022 13:00:27 +0000 (14:00 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 15 Nov 2022 09:08:37 +0000 (10:08 +0100)
commit8fc0380f6ba7e9414c96a695a8c03e2ac31d1b0f
treee8331f0eca9fff5e94b7fdc1508f4fc9830bf6f4
parent44a3928324e9757f7c321535756730be948941c2
drm/client: Add some tests for drm_connector_pick_cmdline_mode()

drm_connector_pick_cmdline_mode() is in charge of finding a proper
drm_display_mode from the definition we got in the video= command line
argument.

Let's add some unit tests to make sure we're not getting any regressions
there.

Acked-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com>
Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v9-8-24b168e5bcd5@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_client_modeset.c
drivers/gpu/drm/tests/drm_client_modeset_test.c [new file with mode: 0644]