drm/amd/display: Code style adjustments
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 10 Apr 2024 18:54:40 +0000 (12:54 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Apr 2024 21:22:45 +0000 (17:22 -0400)
This commit address some small code style issues in DC.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@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/dcn321/dcn321_dio_link_encoder.c
drivers/gpu/drm/amd/display/dc/dm_helpers.h

index a406c5619c45bf775f31a4ec9caeb846cd02f1ad..05783daa62ac2a5afa75fe756783fe1e18ddf148 100644 (file)
@@ -186,7 +186,6 @@ void dcn321_link_encoder_construct(
                                __func__,
                                result);
        }
-       if (enc10->base.ctx->dc->debug.hdmi20_disable) {
+       if (enc10->base.ctx->dc->debug.hdmi20_disable)
                enc10->base.features.flags.bits.HDMI_6GB_EN = 0;
-       }
 }
index 6d7a15dcf8a7ba462cf00f58d5b116bc9eff3cb4..34adae7ab6e86d63ec8f8e4f53ce8ec247d99a4a 100644 (file)
@@ -36,6 +36,7 @@
 struct dc_dp_mst_stream_allocation_table;
 struct aux_payload;
 enum aux_return_code_type;
+enum set_config_status;
 
 /*
  * Allocate memory accessible by the GPU
@@ -200,7 +201,7 @@ int dm_helper_dmub_aux_transfer_sync(
                const struct dc_link *link,
                struct aux_payload *payload,
                enum aux_return_code_type *operation_result);
-enum set_config_status;
+
 int dm_helpers_dmub_set_config_sync(struct dc_context *ctx,
                const struct dc_link *link,
                struct set_config_cmd_payload *payload,