drm/panel: st7701: Fix AVCL calculation
[platform/kernel/linux-starfive.git] / drivers / gpu / drm / panel / panel-sitronix-st7701.c
index 0459965..036ac40 100644 (file)
@@ -288,7 +288,7 @@ static void st7701_init_sequence(struct st7701 *st7701)
                   FIELD_PREP(DSI_CMD2_BK1_PWRCTRL2_AVDD_MASK,
                              DIV_ROUND_CLOSEST(desc->avdd_mv - 6200, 200)) |
                   FIELD_PREP(DSI_CMD2_BK1_PWRCTRL2_AVCL_MASK,
-                             DIV_ROUND_CLOSEST(-4400 + desc->avcl_mv, 200)));
+                             DIV_ROUND_CLOSEST(-4400 - desc->avcl_mv, 200)));
 
        /* T2D = 0.2us * T2D[3:0] */
        ST7701_DSI(st7701, DSI_CMD2_BK1_SPD1,