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)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:29 +0000 (16:33 +0100)
commitff566fea37ab9501298ebdeb685599184a3e07db
tree176859fc5f86d7a7d33f3a6fef83e63976f38011
parenta5b6c320b8fd400f612af16f01405c7f51d4d732
drm/modes: parse_cmdline: Add freestanding argument to drm_mode_parse_cmdline_options()

Commit 99e2716e053734b70434502867be24d20a3e2d84 upstream.

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