drm/amd/display: Clean up code warnings
authorAric Cyr <aric.cyr@amd.com>
Tue, 19 Sep 2023 00:33:15 +0000 (20:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Oct 2023 22:42:01 +0000 (18:42 -0400)
- 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>
drivers/gpu/drm/amd/display/modules/inc/mod_stats.h

index 4220fd8fdd60ca560cb9eb883afcb03c9c9de014..5960dd760e91c8060c874e11c5a50c83671f05ab 100644 (file)
@@ -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,