diff options
author | Maxime Ripard <mripard@kernel.org> | 2019-09-06 03:46:14 -0400 |
---|---|---|
committer | Maxime Ripard <mripard@kernel.org> | 2019-09-06 11:55:33 -0400 |
commit | a3200debde5fda3e25f7e22cb2bc17a9280f7811 (patch) | |
tree | d93a92ecadca7a120e7183a5aac2772f89d610f0 | |
parent | 424c38a4e32509ae82dc9d7300432295806cb911 (diff) |
drm/modes: Make the whitelist more const
The commit 3764137906a5 ("drm/modes: Introduce a whitelist for the named
modes") introduced a whitelist in the named modes lookup code in order to
be a bit more robust.
However, even though the char pointers were made const, the array itself
was not. Let's fix that.
Fixes: 3764137906a5 ("drm/modes: Introduce a whitelist for the named modes")
Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190906074614.30608-1-mripard@kernel.org
-rw-r--r-- | drivers/gpu/drm/drm_modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 0d23bf729e9f..c814bcef18a4 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c | |||
@@ -1677,7 +1677,7 @@ static int drm_mode_parse_cmdline_options(char *str, size_t len, | |||
1677 | return 0; | 1677 | return 0; |
1678 | } | 1678 | } |
1679 | 1679 | ||
1680 | static const char *drm_named_modes_whitelist[] = { | 1680 | static const char * const drm_named_modes_whitelist[] = { |
1681 | "NTSC", | 1681 | "NTSC", |
1682 | "PAL", | 1682 | "PAL", |
1683 | }; | 1683 | }; |