Skip to content

Commit

Permalink
touchpanel_common_driver: Fix game mode not restoring on wakeup
Browse files Browse the repository at this point in the history
* Game mode is disabled during suspend but not restored on wakeup.
* This could cause game mode not taking effect even when "game_switch" is enabled.
  • Loading branch information
libxzr authored and acuicultor committed Sep 15, 2021
1 parent b8eebb1 commit 8457145
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/oneplus/input/touchscreen/touchpanel_common_driver.c
Expand Up @@ -227,6 +227,9 @@ void operate_mode_switch(struct touchpanel_data *ts)
ts->ts_ops->mode_switch(ts->chip_data, MODE_LIMIT_SWITCH, ts->limit_switch);

ts->ts_ops->mode_switch(ts->chip_data, MODE_NORMAL, true);

if (ts->noise_level)
ts->ts_ops->mode_switch(ts->chip_data, MODE_GAME, true);
}
}

Expand Down

0 comments on commit 8457145

Please sign in to comment.