Skip to content

Commit 50dd9ca

Browse files
MrR0b0XOmarAlsmehan
authored andcommitted
disp: msm: dsi: fix misleading indentation in power off
Add braces to the if statement checking samsung_dsi_off_reset_delay to avoid a compiler warning about misleading indentation. The missing braces caused the compiler to treat the subsequent if as potentially belonging to the previous condition based on indentation. Signed-off-by: Robin <hanya8493@gmail.com>
1 parent 5bd293c commit 50dd9ca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

techpack/display/msm/dsi/dsi_panel.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,9 +661,10 @@ static int dsi_panel_power_off(struct dsi_panel *panel)
661661
}
662662
}
663663

664-
if (vdd->dtsi_data.samsung_dsi_off_reset_delay)
665-
usleep_range(vdd->dtsi_data.samsung_dsi_off_reset_delay,
666-
vdd->dtsi_data.samsung_dsi_off_reset_delay);
664+
if (vdd->dtsi_data.samsung_dsi_off_reset_delay) {
665+
usleep_range(vdd->dtsi_data.samsung_dsi_off_reset_delay,
666+
vdd->dtsi_data.samsung_dsi_off_reset_delay);
667+
}
667668

668669
/* Reset regulator off when aot_reset_regulator enabled */
669670
if (vdd->aot_reset_regulator || vdd->aot_reset_regulator_late) {

0 commit comments

Comments
 (0)