mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
input: touchscreen: ilitek_v3_mmi: Remove unused state_mutex
Change-Id: I02edf9229d0e32864c4060ace93adb8c6c9e264f
This commit is contained in:
parent
023381a1dd
commit
c117880f53
2 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue