From ea3e3a4d0c88d92892550c386247997acfae774f Mon Sep 17 00:00:00 2001 From: daiss1 Date: Mon, 14 Sep 2020 11:04:40 +0800 Subject: [PATCH] msm/dsi:Modify judgment conditions,add judgments hbm2. HBM 1 and HBM2 are assigned as HBM on. When HBM is off, the value is HBM off. Change-Id: Iacf17b60725dfe1d2cc2f7206063b81e2e7e98aa Reviewed-on: https://gerrit.mot.com/1783197 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- msm/dsi/dsi_panel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msm/dsi/dsi_panel.h b/msm/dsi/dsi_panel.h index 90eb14030558..1d7ddfd55ac6 100644 --- a/msm/dsi/dsi_panel.h +++ b/msm/dsi/dsi_panel.h @@ -42,8 +42,8 @@ #define BRIGHTNESS_HBM_ON 0xFFFFFFFE #define BRIGHTNESS_HBM_OFF (BRIGHTNESS_HBM_ON - 1) -#define HBM_BRIGHTNESS(value) ((value) == HBM_ON_STATE ?\ - BRIGHTNESS_HBM_ON : BRIGHTNESS_HBM_OFF) +#define HBM_BRIGHTNESS(value) ((value) == HBM_OFF_STATE ?\ + BRIGHTNESS_HBM_OFF : BRIGHTNESS_HBM_ON) /* HBM implementation is different, depending on display and backlight hardware * design, which is classified into the following types: