summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/sc7180/display
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm/sc7180/display')
-rw-r--r--src/soc/qualcomm/sc7180/display/dsi_phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/qualcomm/sc7180/display/dsi_phy.c b/src/soc/qualcomm/sc7180/display/dsi_phy.c
index 050a5d88f1..db4b67cfe7 100644
--- a/src/soc/qualcomm/sc7180/display/dsi_phy.c
+++ b/src/soc/qualcomm/sc7180/display/dsi_phy.c
@@ -564,7 +564,7 @@ static unsigned long dsi_phy_calc_clk_divider(struct dsi_phy_configtype *phy_cfg
/* D Phy */
lut = pll_dividerlut_dphy;
- lut_max = sizeof(pll_dividerlut_dphy) / sizeof(*lut);
+ lut_max = ARRAY_SIZE(pll_dividerlut_dphy);
lut += (lut_max - 1);
/* PLL Post Div - from LUT