drm/modes: Switch to named mode descriptors
authorMaxime Ripard <maxime@cerno.tech>
Mon, 14 Nov 2022 13:00:29 +0000 (14:00 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 15 Nov 2022 09:09:44 +0000 (10:09 +0100)
commita7ab155397dd959785b9fdd175b41c3e58114255
treefcb98556f099b6b6e9c9e34f55dd08d16937f581
parenta631bf30eb914affc0a574f44576833477346ad6
drm/modes: Switch to named mode descriptors

The current named mode parsing relies only on the mode name, and doesn't
allow to specify any other parameter.

Let's convert that string list to an array of a custom structure that will
hold the name and some additional parameters in the future.

Reviewed-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-10-24b168e5bcd5@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_modes.c