summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/atmxt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/atmxt.c')
-rw-r--r--drivers/input/touchscreen/atmxt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/atmxt.c b/drivers/input/touchscreen/atmxt.c
index 7b06475b922..06c5e2b5d8f 100644
--- a/drivers/input/touchscreen/atmxt.c
+++ b/drivers/input/touchscreen/atmxt.c
@@ -37,6 +37,7 @@
#include <linux/string.h>
#include <linux/firmware.h>
#include <linux/input/mt.h>
+#include <linux/wakeup_source_notify.h>
static int atmxt_probe(struct i2c_client *client,
const struct i2c_device_id *id);
@@ -2718,6 +2719,10 @@ static void atmxt_report_touches(struct atmxt_driver_data *dd)
}
input_sync(dd->in_dev);
+#ifdef CONFIG_WAKEUP_SOURCE_NOTIFY
+ if (atmxt_get_ic_state(dd) == ATMXT_IC_AOT)
+ wakeup_source_notify_subscriber(DISPLAY_WAKE_EVENT);
+#endif /* CONFIG_WAKEUP_SOURCE_NOTIFY */
/* Hold to allow events time to propagate up */
wake_lock_timeout(&dd->timed_lock, 0.5 * HZ);