drm/amd/display: Fix compiler redefinition warnings for certain configs

[why & how]
Modified definitions of 1 function and 2 structs to remove warnings on
certain specific compiler configurations due to redefinition.

Reviewed-by: Martin Leung <martin.leung@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Mounika Adhuri <moadhuri@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Mounika Adhuri
2024-03-15 21:36:10 +05:30
committed by Alex Deucher
parent f5a3507c4a
commit fec85f995a
2 changed files with 4 additions and 4 deletions

View File

@@ -226,8 +226,8 @@ enum dp_alt_mode {
struct graphics_object_id {
uint32_t id:8;
uint32_t enum_id:4;
uint32_t type:4;
enum object_enum_id enum_id;
enum object_type type;
uint32_t reserved:16; /* for padding. total size should be u32 */
};