From 6656edcc6cbc7e10cb9eb2b715db3b30a009fd0c Mon Sep 17 00:00:00 2001 From: Benet Clark Date: Fri, 24 Jul 2015 18:53:12 -0700 Subject: [PATCH] msm: mdss: Notify backlight events for AD and regular BL together Postprocessing userspace is a client of backlight notifications from driver. There are two notifications exposed, one for AD BL attenuation and one for regular backlight updates. Previously, the notification would be for one type or the other. This change makes the notifications occur together if both notifications are needed. Change-Id: Ia5bc520a183106e1f9a876583cb3a17435be08ed Signed-off-by: Benet Clark --- drivers/video/fbdev/msm/mdss_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c index cb7863be881a..3d5383b70eae 100644 --- a/drivers/video/fbdev/msm/mdss_fb.c +++ b/drivers/video/fbdev/msm/mdss_fb.c @@ -1410,7 +1410,7 @@ void mdss_fb_set_backlight(struct msm_fb_data_type *mfd, u32 bkl_lvl) if (ad_bl_notify_needed) mdss_fb_bl_update_notify(mfd, NOTIFY_TYPE_BL_AD_ATTEN_UPDATE); - else if (bl_notify_needed) + if (bl_notify_needed) mdss_fb_bl_update_notify(mfd, NOTIFY_TYPE_BL_UPDATE); }