Skip to contentSkip to conversation

drm/amd/display: fix indentation issue on a hunk of code

PATCH Applied Colin King 2 participants 2 messages Feb 28, 2020

Subsystems (4)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 drm/amd/display: fix indentation issue on a hunk of code

From: Colin Ian King <[email protected]>

There are multiple statements that are indented incorrectly. Add in the missing tabs.

---
 .../gpu/drm/amd/display/dc/calcs/dce_calcs.c  | 46 +++++++++----------
 1 file changed, 23 insertions(+), 23 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +15 -19
index 5d081c42e81b..2c6db379afae 100644
@@ -3265,33 +3265,33 @@ bool bw_calcs(struct dc_context *ctx,
 				bw_fixed_to_int(bw_mul(data->
 					stutter_exit_watermark[9], bw_int_to_fixed(1000)));
 
-		calcs_output->stutter_entry_wm_ns[0].b_mark -			bw_fixed_to_int(bw_mul(data->
-				stutter_entry_watermark[4], bw_int_to_fixed(1000)));
-		calcs_output->stutter_entry_wm_ns[1].b_mark -			bw_fixed_to_int(bw_mul(data->
-				stutter_entry_watermark[5], bw_int_to_fixed(1000)));
-		calcs_output->stutter_entry_wm_ns[2].b_mark -			bw_fixed_to_int(bw_mul(data->
-				stutter_entry_watermark[6], bw_int_to_fixed(1000)));
-		if (ctx->dc->caps.max_slave_planes) {
-			calcs_output->stutter_entry_wm_ns[3].b_mark +			calcs_output->stutter_entry_wm_ns[0].b_mark  				bw_fixed_to_int(bw_mul(data->
-					stutter_entry_watermark[0], bw_int_to_fixed(1000)));
-			calcs_output->stutter_entry_wm_ns[4].b_mark +					stutter_entry_watermark[4], bw_int_to_fixed(1000)));
+			calcs_output->stutter_entry_wm_ns[1].b_mark  				bw_fixed_to_int(bw_mul(data->
-					stutter_entry_watermark[1], bw_int_to_fixed(1000)));
-		} else {
-			calcs_output->stutter_entry_wm_ns[3].b_mark +					stutter_entry_watermark[5], bw_int_to_fixed(1000)));
+			calcs_output->stutter_entry_wm_ns[2].b_mark  				bw_fixed_to_int(bw_mul(data->
-					stutter_entry_watermark[7], bw_int_to_fixed(1000)));
-			calcs_output->stutter_entry_wm_ns[4].b_mark +					stutter_entry_watermark[6], bw_int_to_fixed(1000)));
+			if (ctx->dc->caps.max_slave_planes) {
+				calcs_output->stutter_entry_wm_ns[3].b_mark +					bw_fixed_to_int(bw_mul(data->
+						stutter_entry_watermark[0], bw_int_to_fixed(1000)));
+				calcs_output->stutter_entry_wm_ns[4].b_mark +					bw_fixed_to_int(bw_mul(data->
+						stutter_entry_watermark[1], bw_int_to_fixed(1000)));
+			} else {
+				calcs_output->stutter_entry_wm_ns[3].b_mark +					bw_fixed_to_int(bw_mul(data->
+						stutter_entry_watermark[7], bw_int_to_fixed(1000)));
+				calcs_output->stutter_entry_wm_ns[4].b_mark +					bw_fixed_to_int(bw_mul(data->
+						stutter_entry_watermark[8], bw_int_to_fixed(1000)));
+			}
+			calcs_output->stutter_entry_wm_ns[5].b_mark  				bw_fixed_to_int(bw_mul(data->
-					stutter_entry_watermark[8], bw_int_to_fixed(1000)));
-		}
-		calcs_output->stutter_entry_wm_ns[5].b_mark -			bw_fixed_to_int(bw_mul(data->
-				stutter_entry_watermark[9], bw_int_to_fixed(1000)));
+					stutter_entry_watermark[9], bw_int_to_fixed(1000)));
 
 			calcs_output->urgent_wm_ns[0].b_mark  				bw_fixed_to_int(bw_mul(data->
Signature · 1 line
2.25.0
Applied
#1 lore raw
Quoted 7 lines · Colin King

From: Colin Ian King <[email protected]>

There are multiple statements that are indented incorrectly. Add in the missing tabs.

Applied. Thanks!

Alex

Quoted 55 lines
---
 .../gpu/drm/amd/display/dc/calcs/dce_calcs.c  | 46 +++++++++----------
 1 file changed, 23 insertions(+), 23 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +15 -20
index 5d081c42e81b..2c6db379afae 100644
@@ -3265,33 +3265,33 @@ bool bw_calcs(struct dc_context *ctx,
                                bw_fixed_to_int(bw_mul(data->
                                        stutter_exit_watermark[9], bw_int_to_fixed(1000)));
 
-               calcs_output->stutter_entry_wm_ns[0].b_mark > -                       bw_fixed_to_int(bw_mul(data->
-                               stutter_entry_watermark[4], bw_int_to_fixed(1000)));
-               calcs_output->stutter_entry_wm_ns[1].b_mark > -                       bw_fixed_to_int(bw_mul(data->
-                               stutter_entry_watermark[5], bw_int_to_fixed(1000)));
-               calcs_output->stutter_entry_wm_ns[2].b_mark > -                       bw_fixed_to_int(bw_mul(data->
-                               stutter_entry_watermark[6], bw_int_to_fixed(1000)));
-               if (ctx->dc->caps.max_slave_planes) {
-                       calcs_output->stutter_entry_wm_ns[3].b_mark > +                       calcs_output->stutter_entry_wm_ns[0].b_mark >                                 bw_fixed_to_int(bw_mul(data->
-                                       stutter_entry_watermark[0], bw_int_to_fixed(1000)));
-                       calcs_output->stutter_entry_wm_ns[4].b_mark > +                                       stutter_entry_watermark[4], bw_int_to_fixed(1000)));
+                       calcs_output->stutter_entry_wm_ns[1].b_mark >                                 bw_fixed_to_int(bw_mul(data->
-                                       stutter_entry_watermark[1], bw_int_to_fixed(1000)));
-               } else {
-                       calcs_output->stutter_entry_wm_ns[3].b_mark > +                                       stutter_entry_watermark[5], bw_int_to_fixed(1000)));
+                       calcs_output->stutter_entry_wm_ns[2].b_mark >                                 bw_fixed_to_int(bw_mul(data->
-                                       stutter_entry_watermark[7], bw_int_to_fixed(1000)));
-                       calcs_output->stutter_entry_wm_ns[4].b_mark > +                                       stutter_entry_watermark[6], bw_int_to_fixed(1000)));
+                       if (ctx->dc->caps.max_slave_planes) {
+                               calcs_output->stutter_entry_wm_ns[3].b_mark > +                                       bw_fixed_to_int(bw_mul(data->
+                                               stutter_entry_watermark[0], bw_int_to_fixed(1000)));
+                               calcs_output->stutter_entry_wm_ns[4].b_mark > +                                       bw_fixed_to_int(bw_mul(data->
+                                               stutter_entry_watermark[1], bw_int_to_fixed(1000)));
+                       } else {
+                               calcs_output->stutter_entry_wm_ns[3].b_mark > +                                       bw_fixed_to_int(bw_mul(data->
+                                               stutter_entry_watermark[7], bw_int_to_fixed(1000)));
+                               calcs_output->stutter_entry_wm_ns[4].b_mark > +                                       bw_fixed_to_int(bw_mul(data->
+                                               stutter_entry_watermark[8], bw_int_to_fixed(1000)));
+                       }
+                       calcs_output->stutter_entry_wm_ns[5].b_mark >                                 bw_fixed_to_int(bw_mul(data->
-                                       stutter_entry_watermark[8], bw_int_to_fixed(1000)));
-               }
-               calcs_output->stutter_entry_wm_ns[5].b_mark > -                       bw_fixed_to_int(bw_mul(data->
-                               stutter_entry_watermark[9], bw_int_to_fixed(1000)));
+                                       stutter_entry_watermark[9], bw_int_to_fixed(1000)));
 
                        calcs_output->urgent_wm_ns[0].b_mark >                                 bw_fixed_to_int(bw_mul(data->
--

2.25.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel