[Kane]:[user]modify backligt chipset(lm36923) config to reslove brightness flicker
authorxingbin <xingbin@huaqin.com>
Mon, 25 Feb 2019 12:19:44 +0000 (20:19 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:50 +0000 (17:30 +0800)
Change-Id: I593d3e5d7db4ed4704fbc148312949c89617b566
Signed-off-by: xingbin <xingbin@huaqin.com>
Signed-off-by: tanhua1 <tanhua1@mt.com>
Reviewed-on: https://gerrit.mot.com/1314179
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

drivers/video/backlight/lm36923.c

index 7ce4c37d0b38a4a5c283b818cf3e2a39c7c88aa8..d094d78e3ae37b2f3e725a73018cf04e2f3f72ac 100755 (executable)
@@ -260,7 +260,7 @@ static int lm36923_resume(struct lm36923_data *dev_data)
                pr_err("%s: lm36923 dev is busy\n",__func__);\r
                goto exit;\r
        }\r
-       ret = backlight_i2c_write(dev_data, LM_PWMCTL_REG, 0xEE);\r
+       ret = backlight_i2c_write(dev_data, LM_PWMCTL_REG, 0xFA);\r
        if(ret < 0) {\r
                pr_err("%s: write new value[0xEE] to reg[0x%x] error\n", __func__, LM_PWMCTL_REG);\r
        }\r
@@ -403,7 +403,7 @@ static int lm36923_probe(struct i2c_client *client,
         if(ret < 0){\r
             pr_err("%s:NR mode:write lm chip MSB error\n",__func__);\r
         }\r
-        ret = backlight_i2c_write(lm, LM_PWMCTL_REG, 0xEE);\r
+        ret = backlight_i2c_write(lm, LM_PWMCTL_REG, 0xFA);\r
                if(ret < 0) {\r
             pr_err("%s: write new value[0xEE] to reg[0x%x] error\n", __func__, LM_PWMCTL_REG);\r
         }\r