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 <[email protected]>
Reviewed-by: Huosheng Liao <[email protected]>
Reviewed-by: Shanshan Dai <[email protected]>
Submit-Approved: Jira Key
This commit is contained in:
daiss1 2020-09-14 11:04:40 +08:00 • committed by tongkun1
commit ea3e3a4d0c

View file

@ -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: