]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Adjust codestyle for dcn31 and hdcp_msg
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 18 Apr 2024 17:15:11 +0000 (11:15 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:52:15 +0000 (09:52 -0400)
This commit just update the code style in two if conditions and in an
static array.

Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
drivers/gpu/drm/amd/display/dc/hdcp/hdcp_msg.c

index 59a902313200005ca6b6f5d56c4055516c810c1a..4407640c5f872134cc48bc4fdbe0f1e62acec631 100644 (file)
@@ -645,9 +645,9 @@ void dcn31_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params
                        dcn3_1_soc.clock_limits[closest_clk_lvl].phyclk_d18_mhz;
                s[i].phyclk_mhz = dcn3_1_soc.clock_limits[closest_clk_lvl].phyclk_mhz;
        }
-       if (clk_table->num_entries) {
+
+       if (clk_table->num_entries)
                dcn3_1_soc.num_states = clk_table->num_entries;
-       }
 
        memcpy(dcn3_1_soc.clock_limits, s, sizeof(dcn3_1_soc.clock_limits));
 
@@ -797,9 +797,9 @@ void dcn316_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_param
                        dcn3_16_soc.clock_limits[closest_clk_lvl].phyclk_d18_mhz;
                s[i].phyclk_mhz = dcn3_16_soc.clock_limits[closest_clk_lvl].phyclk_mhz;
        }
-       if (clk_table->num_entries) {
+
+       if (clk_table->num_entries)
                dcn3_16_soc.num_states = clk_table->num_entries;
-       }
 
        memcpy(dcn3_16_soc.clock_limits, s, sizeof(dcn3_16_soc.clock_limits));
 
index 99e17c164ce7b8bb74f4b9edf9af0e6d07c30028..076a829c237838d528cef48b1635f702ee2b42e1 100644 (file)
@@ -70,7 +70,7 @@ static const bool hdcp_cmd_is_read[HDCP_MESSAGE_ID_MAX] = {
        [HDCP_MESSAGE_ID_WRITE_REPEATER_AUTH_STREAM_MANAGE] = false,
        [HDCP_MESSAGE_ID_READ_REPEATER_AUTH_STREAM_READY] = true,
        [HDCP_MESSAGE_ID_READ_RXSTATUS] = true,
-       [HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE] = false
+       [HDCP_MESSAGE_ID_WRITE_CONTENT_STREAM_TYPE] = false,
 };
 
 static const uint8_t hdcp_i2c_offsets[HDCP_MESSAGE_ID_MAX] = {