mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
eb4eb54d41
commit
7819f82461
1 changed files with 1 additions and 8 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue