Skip to content

Commit

Permalink
msm: mdss: KCAL: remove some code meant for later hw revisions
Browse files Browse the repository at this point in the history
  • Loading branch information
flar2 authored and airend committed Aug 2, 2015
1 parent 6bfe285 commit c3e1ff5
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions drivers/video/msm/mdss/mdss_mdp_kcal_ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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, &copyback);
} 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, &copyback);
}
}

Expand Down

0 comments on commit c3e1ff5

Please sign in to comment.