From 3fd9638f272f737535e5e4c400d2b2fac09dcbc3 Mon Sep 17 00:00:00 2001 From: Benet Clark Date: Mon, 14 Dec 2015 22:24:16 -0800 Subject: [PATCH] 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 Signed-off-by: Krishna Chaitanya Parimi CRs-fixed: 949146 --- drivers/video/fbdev/msm/mdss_fb.c | 1 + 1 file changed, 1 insertion(+) 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;