Skip to contentSkip to conversation

drm/msm/dsi: fix the inconsistent indenting

PATCH RESEND Superseded sunliming 2 participants 3 messages Jul 8, 2022 – Jul 18, 2022

Subsystems (3)
lore
Share & tools
lore

sunliming

author
#0 lore raw

PATCH RESEND 1/1 drm/msm/dsi: fix the inconsistent indenting

Fix the inconsistent indenting in function msm_dsi_dphy_timing_calc_v3().

Fix the following smatch warnings:

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c:350 msm_dsi_dphy_timing_calc_v3() warn: inconsistent indenting

---
 drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +1 -1
index a39de3bdc7fa..56dfa2d24be1 100644
@@ -347,7 +347,7 @@ int msm_dsi_dphy_timing_calc_v3(struct msm_dsi_dphy_timing *timing,
 	} else {
 		timing->shared_timings.clk_pre =
 			linear_inter(tmax, tmin, pcnt2, 0, false);
-			timing->shared_timings.clk_pre_inc_by_2 = 0;
+		timing->shared_timings.clk_pre_inc_by_2 = 0;
 	}
 
 	timing->ta_go = 3;
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · sunliming

Fix the inconsistent indenting in function msm_dsi_dphy_timing_calc_v3().

Fix the following smatch warnings:

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c:350 msm_dsi_dphy_timing_calc_v3() warn: inconsistent indenting

Quoted 17 lines
---
  drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +1 -1
index a39de3bdc7fa..56dfa2d24be1 100644
@@ -347,7 +347,7 @@ int msm_dsi_dphy_timing_calc_v3(struct msm_dsi_dphy_timing *timing,
  	} else {
  		timing->shared_timings.clk_pre =
  			linear_inter(tmax, tmin, pcnt2, 0, false);
-			timing->shared_timings.clk_pre_inc_by_2 = 0;
+		timing->shared_timings.clk_pre_inc_by_2 = 0;
  	}
 
  	timing->ta_go = 3;
#2 lore raw
Quoted 5 lines · Abhinav Kumar
Quoted 2 lines · sunliming

Fix the inconsistent indenting in function msm_dsi_dphy_timing_calc_v3().

Quoted 7 lines
Quoted 6 lines

Fix the following smatch warnings:

drivers/gpu/drm/msm/dsi/phy/dsi_phy.c:350 msm_dsi_dphy_timing_calc_v3() warn: inconsistent indenting

Fixes f1fa7ff44056 ("drm/msm/dsi: implement auto PHY timing calculator for 10nm PHY")
Quoted 17 lines
Quoted 17 lines

---
  drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/dsi/phy/dsi_phy.c +0 -0
index a39de3bdc7fa..56dfa2d24be1 100644
@@ -347,7 +347,7 @@ int msm_dsi_dphy_timing_calc_v3(struct 
 msm_dsi_dphy_timing *timing,
       } else {

          timing->shared_timings.clk_pre = linear_inter(tmax, tmin, pcnt2, 0, false); -            timing->shared_timings.clk_pre_inc_by_2 = 0; +        timing->shared_timings.clk_pre_inc_by_2 = 0; }
      timing->ta_go = 3;