Skip to contentSkip to conversation

drm/amd/display: Clean up errors in dc_stream.c

PATCH Applied Ran Sun 2 participants 2 messages Aug 2, 2023 – Aug 7, 2023

Subsystems (3)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amd/display: Clean up errors in dc_stream.c

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line

---
 drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +1 -2
index ea3d4b328e8e..05bb23bc122d 100644
@@ -71,8 +71,7 @@ static bool dc_stream_construct(struct dc_stream_state *stream,
 
 	/* Copy audio modes */
 	/* TODO - Remove this translation */
-	for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++)
-	{
+	for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++) {
 		stream->audio_info.modes[i].channel_count = dc_sink_data->edid_caps.audio_modes[i].channel_count;
 		stream->audio_info.modes[i].format_code = dc_sink_data->edid_caps.audio_modes[i].format_code;
 		stream->audio_info.modes[i].sample_rates.all = dc_sink_data->edid_caps.audio_modes[i].sample_rate;
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 27 lines · Ran Sun

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line

---
 drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_stream.c +1 -3
index ea3d4b328e8e..05bb23bc122d 100644
@@ -71,8 +71,7 @@ static bool dc_stream_construct(struct dc_stream_state *stream,
 
        /* Copy audio modes */
        /* TODO - Remove this translation */
-       for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++)
-       {
+       for (i = 0; i < (dc_sink_data->edid_caps.audio_mode_count); i++) {
                stream->audio_info.modes[i].channel_count = dc_sink_data->edid_caps.audio_modes[i].channel_count;
                stream->audio_info.modes[i].format_code = dc_sink_data->edid_caps.audio_modes[i].format_code;
                stream->audio_info.modes[i].sample_rates.all = dc_sink_data->edid_caps.audio_modes[i].sample_rate;
--

2.17.1