Merge "msm: mdss: remove HDMI connected flags"

This commit is contained in:
Linux Build Service Account 2017-05-27 18:12:03 -07:00 committed by Gerrit - the friendly Code Review server
commit de3a51ca17

View file

@ -39,7 +39,6 @@ struct msm_ext_disp {
struct list_head display_list;
struct mutex lock;
struct completion hpd_comp;
u32 flags;
};
static int msm_ext_disp_get_intf_data(struct msm_ext_disp *ext_disp,
@ -288,7 +287,6 @@ static bool msm_ext_disp_validate_connect(struct msm_ext_disp *ext_disp,
if (ext_disp->current_disp != type)
return false;
end:
ext_disp->flags |= flags;
ext_disp->current_disp = type;
return true;
}
@ -304,13 +302,7 @@ static bool msm_ext_disp_validate_disconnect(struct msm_ext_disp *ext_disp,
if (ext_disp->current_disp != type)
return false;
/* allow only an already connected type */
if (ext_disp->flags & flags) {
ext_disp->flags &= ~flags;
return true;
}
return false;
return true;
}
static int msm_ext_disp_hpd(struct platform_device *pdev,
@ -378,8 +370,7 @@ static int msm_ext_disp_hpd(struct platform_device *pdev,
msm_ext_disp_update_audio_ops(ext_disp, type, state, flags);
msm_ext_disp_process_display(ext_disp, type, state, flags);
if (!ext_disp->flags)
ext_disp->current_disp = EXT_DISPLAY_TYPE_MAX;
ext_disp->current_disp = EXT_DISPLAY_TYPE_MAX;
}
pr_debug("Hpd (%d) for display (%s)\n", state,