mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-09-28 00:00:22 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user