dsi_panel: remove MOTO_PANEL_CHECK_TOUCH_STATE

Remove MOTO_PANEL_CHECK_TOUCH_STATE, we alway compile this
code. When "tp_state_check_enable"  is define at device tree file , then
call "check_state" function to get touch state.

Change-Id: Iccdff4a408eb9ad27b71c8394b4c4a844da7b238
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1793078
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Shanshan Dai <daiss1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
houdz1 2020-11-04 13:46:08 +08:00 • committed by tongkun1
commit 7819f82461

View file

@ -397,7 +397,7 @@ static int dsi_panel_set_pinctrl_state(struct dsi_panel *panel, bool enable)
return rc;
}
#if defined(MOTO_PANEL_CHECK_TOUCH_STATE)
static int touch_state[PANEL_IDX_MAX] = {0};
int touch_set_state(int state, int panel_idx)
{
@ -422,7 +422,6 @@ static int check_touch_state(int *state, int panel_idx)
return rc;
}
static bool panel_power_is_alway_on(struct dsi_panel *panel)
{
int touch_state = 0;
@ -442,12 +441,6 @@ static bool panel_power_is_alway_on(struct dsi_panel *panel)
return rc;
}
#else
static bool panel_power_is_alway_on(struct dsi_panel *panel)
{
return 0;
}
#endif
static int dsi_panel_power_on(struct dsi_panel *panel)
{