diff --git a/drivers/video/msm/mdss/mdss_mdp_kcal_ctrl.c b/drivers/video/msm/mdss/mdss_mdp_kcal_ctrl.c index a6e66516fad8..78e6f45052f3 100644 --- a/drivers/video/msm/mdss/mdss_mdp_kcal_ctrl.c +++ b/drivers/video/msm/mdss/mdss_mdp_kcal_ctrl.c @@ -153,7 +153,6 @@ static void mdss_mdp_kcal_update_pa(struct kcal_lut_data *lut_data) { u32 copyback = 0; struct mdp_pa_cfg_data pa_config; - struct mdp_pa_v2_cfg_data pa_v2_config; struct mdss_data_type *mdata = mdss_mdp_get_mdata(); if (mdata->mdp_rev < MDSS_MDP_HW_REV_103) { @@ -168,26 +167,6 @@ static void mdss_mdp_kcal_update_pa(struct kcal_lut_data *lut_data) pa_config.pa_data.cont_adj = lut_data->cont; mdss_mdp_pa_config(&pa_config, ©back); - } else { - memset(&pa_v2_config, 0, sizeof(struct mdp_pa_v2_cfg_data)); - - pa_v2_config.block = MDP_LOGICAL_BLOCK_DISP_0; - pa_v2_config.pa_v2_data.flags = lut_data->enable ? MDP_PP_OPS_WRITE | MDP_PP_OPS_ENABLE : - MDP_PP_OPS_WRITE | MDP_PP_OPS_DISABLE; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_HUE_ENABLE; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_HUE_MASK; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_SAT_ENABLE; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_SAT_MASK; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_VAL_ENABLE; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_VAL_MASK; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_CONT_ENABLE; - pa_v2_config.pa_v2_data.flags |= MDP_PP_PA_CONT_MASK; - pa_v2_config.pa_v2_data.global_hue_adj = lut_data->hue; - pa_v2_config.pa_v2_data.global_sat_adj = lut_data->sat; - pa_v2_config.pa_v2_data.global_val_adj = lut_data->val; - pa_v2_config.pa_v2_data.global_cont_adj = lut_data->cont; - - mdss_mdp_pa_v2_config(&pa_v2_config, ©back); } }