drm/modes: parse_cmdline: Add freestanding argument to drm_mode_parse_cmdline_options()
authorHans de Goede <hdegoede@redhat.com>
Mon, 18 Nov 2019 15:51:27 +0000 (16:51 +0100)
committerHans de Goede <hdegoede@redhat.com>
Mon, 16 Dec 2019 11:13:17 +0000 (12:13 +0100)
commit99e2716e053734b70434502867be24d20a3e2d84
treebeffade51238a8d24721828e26798d7d73367438
parent739b200c2edcaaa7a86f37b0c11db57956433dfb
drm/modes: parse_cmdline: Add freestanding argument to drm_mode_parse_cmdline_options()

Add a freestanding function argument to drm_mode_parse_cmdline_options()
similar to how drm_mode_parse_cmdline_extra() already has this.

This is a preparation patch for allowing parsing of stand-alone options
without a mode before them, e.g.: video=HDMI-1:margin_right=14,...

Acked-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191118155134.30468-6-hdegoede@redhat.com
drivers/gpu/drm/drm_modes.c