From: xingbin Date: Mon, 25 Feb 2019 12:19:44 +0000 (+0800) Subject: [Kane]:[user]modify backligt chipset(lm36923) config to reslove brightness flicker X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=403e63e82afac4d29b3a56b20b36208ee16cb40c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [Kane]:[user]modify backligt chipset(lm36923) config to reslove brightness flicker Change-Id: I593d3e5d7db4ed4704fbc148312949c89617b566 Signed-off-by: xingbin Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/1314179 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- diff --git a/drivers/video/backlight/lm36923.c b/drivers/video/backlight/lm36923.c index 7ce4c37d0b38..d094d78e3ae3 100755 --- a/drivers/video/backlight/lm36923.c +++ b/drivers/video/backlight/lm36923.c @@ -260,7 +260,7 @@ static int lm36923_resume(struct lm36923_data *dev_data) pr_err("%s: lm36923 dev is busy\n",__func__); goto exit; } - ret = backlight_i2c_write(dev_data, LM_PWMCTL_REG, 0xEE); + ret = backlight_i2c_write(dev_data, LM_PWMCTL_REG, 0xFA); if(ret < 0) { pr_err("%s: write new value[0xEE] to reg[0x%x] error\n", __func__, LM_PWMCTL_REG); } @@ -403,7 +403,7 @@ static int lm36923_probe(struct i2c_client *client, if(ret < 0){ pr_err("%s:NR mode:write lm chip MSB error\n",__func__); } - ret = backlight_i2c_write(lm, LM_PWMCTL_REG, 0xEE); + ret = backlight_i2c_write(lm, LM_PWMCTL_REG, 0xFA); if(ret < 0) { pr_err("%s: write new value[0xEE] to reg[0x%x] error\n", __func__, LM_PWMCTL_REG); }