drm/modes: Add a switch to differentiate free standing options
authorMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 27 Aug 2019 11:58:47 +0000 (13:58 +0200)
committerMaxime Ripard <mripard@kernel.org>
Fri, 30 Aug 2019 08:18:15 +0000 (10:18 +0200)
commit325d0ab3a1d1ad8b8c4f9f03fd866e55b0e24254
tree13dcc7268b51c68ab00b294d261848f466cac21f
parent807f6c8472da716e29744e1fa35480b08af3e4bc
drm/modes: Add a switch to differentiate free standing options

Some extra command line options can be either specified without anything
else on the command line (basically all the force connection options), but
some other are only relevant when matched with a resolution (margin and
interlace).

Let's add a switch to restrict if needed the available option set.

Fixes: e08ab74bd4c7 ("drm/modes: Rewrite the command line parser")
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Thomas Graichen <thomas.graichen@gmail.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190827115850.25731-1-mripard@kernel.org
drivers/gpu/drm/drm_modes.c