input: touchscreen: ilitek_v3_mmi: Remove unused state_mutex

Change-Id: I02edf9229d0e32864c4060ace93adb8c6c9e264f
This commit is contained in:
Michael Bestas 2025-04-08 04:08:46 +03:00
commit c117880f53
No known key found for this signature in database
2 changed files with 0 additions and 4 deletions

View file

@ -1350,7 +1350,6 @@ struct ilitek_ts_data {
uint8_t sys_gesture_type;
uint8_t rst_pull_flag;
#endif
struct mutex state_mutex;
struct ili_sensor_platform_data *sensor_pdata;
#ifdef CONFIG_HAS_WAKELOCK
struct wake_lock gesture_wakelock;

View file

@ -753,7 +753,6 @@ static int ili_sensor_set_enable(struct sensors_classdev *sensors_cdev,
ILI_DBG("double tap ctrl, do nothing\n");
#else
ILI_INFO("Gesture set enable %d!", enable);
mutex_lock(&ilits->state_mutex);
if (enable == 1) {
ilits->should_enable_gesture = true;
} else if (enable == 0) {
@ -761,7 +760,6 @@ static int ili_sensor_set_enable(struct sensors_classdev *sensors_cdev,
} else {
ILI_INFO("unknown enable symbol\n");
}
mutex_unlock(&ilits->state_mutex);
#endif
return 0;
}
@ -996,7 +994,6 @@ static int ilitek_plat_probe(void)
#endif
#ifdef ILI_SENSOR_EN
mutex_init(&ilits->state_mutex);
if (!initialized_sensor) {
#ifdef CONFIG_HAS_WAKELOCK
wake_lock_init(&(ilits->gesture_wakelock), WAKE_LOCK_SUSPEND, "dt-wake-lock");