summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAric Cyr <aric.cyr@amd.com>2023-09-19 02:33:15 +0200
committerAlex Deucher <alexander.deucher@amd.com>2023-10-05 00:42:01 +0200
commit889d55154516ec8f98ea953e8660963f2e29c75d (patch)
treed31472d4de42e4658221092cf44622b1a4601cb5
parentdrm/amd/display: Make driver backwards-compatible with non-IPS PMFW (diff)
downloadlinux-889d55154516ec8f98ea953e8660963f2e29c75d.tar.xz
linux-889d55154516ec8f98ea953e8660963f2e29c75d.zip
drm/amd/display: Clean up code warnings
- Fix constness of string parameters - Fix zero-initialization of structs which cannot take a 0 literal as the first field, for example enums Reviewed-by: Dillon Varone <dillon.varone@amd.com> Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Signed-off-by: Aric Cyr <aric.cyr@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/modules/inc/mod_stats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h
index 4220fd8fdd60..5960dd760e91 100644
--- a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h
+++ b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h
@@ -53,7 +53,7 @@ void mod_stats_dump(struct mod_stats *mod_stats);
void mod_stats_reset_data(struct mod_stats *mod_stats);
void mod_stats_update_event(struct mod_stats *mod_stats,
- char *event_string,
+ const char *event_string,
unsigned int length);
void mod_stats_update_flip(struct mod_stats *mod_stats,