drm/modes: parse_cmdline: Rework drm_mode_parse_cmdline_options()
authorHans de Goede <hdegoede@redhat.com>
Mon, 18 Nov 2019 15:51:26 +0000 (16:51 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:29 +0000 (16:33 +0100)
commita5b6c320b8fd400f612af16f01405c7f51d4d732
treef12d9bf81f2e36db9b11bb092376c933dfdd7e9b
parent8e0ac8a246a08ad5530e1cb1a86c00d767ae93d4
drm/modes: parse_cmdline: Rework drm_mode_parse_cmdline_options()

Commit 739b200c2edcaaa7a86f37b0c11db57956433dfb upstream.

Refactor drm_mode_parse_cmdline_options() so that it takes a pointer
to the first option, rather then a pointer to the ',' before the first
option.

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-5-hdegoede@redhat.com
drivers/gpu/drm/drm_modes.c