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)
committerHans de Goede <hdegoede@redhat.com>
Mon, 16 Dec 2019 11:13:17 +0000 (12:13 +0100)
commit739b200c2edcaaa7a86f37b0c11db57956433dfb
treeb0216d489f5bcf8759f0ac08843313cab41f035f
parentcfb0881b8f621b656a9e23b31944a5db94cf5842
drm/modes: parse_cmdline: Rework drm_mode_parse_cmdline_options()

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