mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
backlight: don't enable aw99703 backlight while brighness level 0
while brightness level 0 is set, needn't enable the aw99703 backlight driver. Change-Id: I50edc50e8dd43bb0f0349dbf21e3b3dc08f11290 Signed-off-by: tanhua1 <tanhua1@lenovo.com> Reviewed-on: https://gerrit.mot.com/2065839 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang <wangyq13@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
a8e63fa964
commit
b99a531f4f
1 changed files with 2 additions and 0 deletions
|
|
@ -338,6 +338,8 @@ int aw99703_set_brightness(struct aw99703_data *drvdata, int brt_val)
|
|||
pr_info("%s brt_val is %d\n", __func__, brt_val);
|
||||
|
||||
if (drvdata->enable == false) {
|
||||
if(brt_val == 0)
|
||||
return 0;
|
||||
aw99703_backlight_init(drvdata);
|
||||
aw99703_backlight_enable(drvdata);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue