msm: mdss: Use the correct bl_mfd for panel backlight info

Get the panel backlight info from the correct bl_mfd.

Change-Id: Icc4568eb4ae9f4091f7ccf5f60e97bfd7f745420
Signed-off-by: Ping Li <pingli@codeaurora.org>
This commit is contained in:
Ping Li
2015-04-24 14:36:12 +05:30
committed by Justin Philip
parent e252f2d633
commit 8aeb0925bc
+2 -2
View File
@@ -1902,7 +1902,7 @@ int mdss_mdp_pp_resume(struct mdss_mdp_ctl *ctl, u32 dspp_num)
(ad->sts & PP_STS_ENABLE)) {
ad->last_bl = bl;
linear_map(bl, &ad->bl_data,
ad->bl_mfd->panel_info->bl_max,
bl_mfd->panel_info->bl_max,
MDSS_MDP_AD_BL_SCALE);
pp_ad_input_write(&mdata->ad_off[dspp_num], ad);
}
@@ -4655,7 +4655,7 @@ static int mdss_mdp_ad_setup(struct msm_fb_data_type *mfd)
ad->calc_itr = ad->cfg.stab_itr;
ad->sts |= PP_AD_STS_DIRTY_VSYNC;
linear_map(bl, &ad->bl_data,
ad->bl_mfd->panel_info->bl_max,
bl_mfd->panel_info->bl_max,
MDSS_MDP_AD_BL_SCALE);
}
ad->reg_sts |= PP_AD_STS_DIRTY_DATA;