Skip to content

Commit a3200de

Browse files
committed
drm/modes: Make the whitelist more const
The commit 3764137 ("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: 3764137 ("drm/modes: Introduce a whitelist for the named modes") Suggested-by: Jani Nikula <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 424c38a commit a3200de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_modes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ static int drm_mode_parse_cmdline_options(char *str, size_t len,
16771677
return 0;
16781678
}
16791679

1680-
static const char *drm_named_modes_whitelist[] = {
1680+
static const char * const drm_named_modes_whitelist[] = {
16811681
"NTSC",
16821682
"PAL",
16831683
};

0 commit comments

Comments
 (0)