Skip to content

Commit

Permalink
sm7125: input: touchscreen: fts5cu56a: Wake screen if pressing FOD
Browse files Browse the repository at this point in the history
This will send KEY_POWER if the fingerprint sensor is touched. Neither panel nor touchscreen need to be enabled for this to work since fingerprint touches are registered independently of that.

Signed-off-by: Simon1511 <simon2002.schoenmackers@gmail.com>
Change-Id: Ib30b44ffe5efe1daca2544465e2ac9006fc1ccb0
  • Loading branch information
Simon1511 committed Jul 2, 2022
1 parent 56114f2 commit 4ebe29f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/input/touchscreen/stm/fts5cu56a/fts_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -2125,6 +2125,9 @@ static u8 fts_event_handler_type_b(struct fts_ts_info *info)
input_info(true, &info->client->dev, "%s: failed to read FOD VI: ret: %d\n", __func__, ret);
} else {
input_info(true, &info->client->dev, "%s: FOD VI\n", __func__);
input_report_key(info->input_dev, KEY_WAKEUP, 1);
input_sync(info->input_dev);
input_report_key(info->input_dev, KEY_WAKEUP, 0);
}
} else {
input_info(true, &info->client->dev, "%s: FOD not enabled: 0x%X\n", __func__, info->lowpower_flag);
Expand Down

0 comments on commit 4ebe29f

Please sign in to comment.