summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenet Clark <benetc@codeaurora.org>2015-12-14 22:24:16 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:14:19 -0700
commit3fd9638f272f737535e5e4c400d2b2fac09dcbc3 (patch)
tree6a7f647eba296b8ed027eb178f6da4017f7a9cdd
parent77df1f4425bb66009d0adc62e3b2bb4056971d08 (diff)
msm: mdss: Send backlight sysfs notification in all BL update locations
There are two places where the backlight can get updated. Currently, the sysfs notification only happens in mdss_fb_set_backlight. If the backlight is restored during the first display commit, the backlight update occurs in mdss_fb_update_backlight. This change adds the sysfs notification in update_backlight. Change-Id: Iffa1e4f0aa0cdc8babb1b6683d3175795f4b4d27 Signed-off-by: Benet Clark <benetc@codeaurora.org> Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org> CRs-fixed: 949146
-rw-r--r--drivers/video/fbdev/msm/mdss_fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c
index e64d5986065f..07a9a07511ed 100644
--- a/drivers/video/fbdev/msm/mdss_fb.c
+++ b/drivers/video/fbdev/msm/mdss_fb.c
@@ -1545,6 +1545,7 @@ void mdss_fb_update_backlight(struct msm_fb_data_type *mfd)
if (bl_notify)
mdss_fb_bl_update_notify(mfd,
NOTIFY_TYPE_BL_AD_ATTEN_UPDATE);
+ mdss_fb_bl_update_notify(mfd, NOTIFY_TYPE_BL_UPDATE);
pdata->set_backlight(pdata, temp);
mfd->bl_level_scaled = mfd->unset_bl_level;
mfd->allow_bl_update = true;