drm/amd/display: Rename a struct field to describe a cea component better
authorOliver Logush <oliver.logush@amd.com>
Wed, 24 Nov 2021 22:24:05 +0000 (17:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Dec 2021 18:11:28 +0000 (13:11 -0500)
[why]
Need to fix the code so it does not use reserved keywords

[how]
Change the total_length member of the cea struct

Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Oliver Logush <oliver.logush@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h

index 3e935cf849592112a937aca5bf45237726019f35..0585ae44e555b03e057e247874d74adf1525cc5c 100644 (file)
@@ -11308,7 +11308,7 @@ static bool dm_edid_parser_send_cea(struct amdgpu_display_manager *dm,
                sizeof(cmd.edid_cea) - sizeof(cmd.edid_cea.header);
        input->offset = offset;
        input->length = length;
-       input->total_length = total_length;
+       input->cea_total_length = total_length;
        memcpy(input->payload, data, length);
 
        res = dc_dmub_srv_cmd_with_reply_data(dm->dc->ctx->dmub_srv, &cmd);
index 9c18e158249c84c8e38ceec8f0100aa247961471..2da0ef9ae1d70d5f210ec0474956f9fd1e252ab2 100644 (file)
@@ -2404,7 +2404,7 @@ struct dmub_rb_cmd_lvtma_control {
 struct dmub_cmd_send_edid_cea {
        uint16_t offset;        /**< offset into the CEA block */
        uint8_t length; /**< number of bytes in payload to copy as part of CEA block */
-       uint16_t total_length;  /**< total length of the CEA block */
+       uint16_t cea_total_length;  /**< total length of the CEA block */
        uint8_t payload[DMUB_EDID_CEA_DATA_CHUNK_BYTES]; /**< data chunk of the CEA block */
        uint8_t pad[3]; /**< padding and for future expansion */
 };