summaryrefslogtreecommitdiff
path: root/include/linux/wakeup_source_notify.h
diff options
context:
space:
mode:
authorWengang Wu <wgw@motorola.com>2014-07-23 19:01:06 -0500
committerWengang Wu <wgw@motorola.com>2014-07-23 19:01:06 -0500
commit3ec0e610cc23c072b90c1bde3ff7bc767f6bac8d (patch)
tree5e1da063acd7183666d466bec665467a142b61c6 /include/linux/wakeup_source_notify.h
parent2394a8ad9dd527633e7220de4cbf307cc5fcc3f2 (diff)
downloadolio-linux-3.10-3ec0e610cc23c072b90c1bde3ff7bc767f6bac8d.tar.xz
olio-linux-3.10-3ec0e610cc23c072b90c1bde3ff7bc767f6bac8d.zip
IKXCLOCK-3122 Smart Ambient: support ambient off gesture
Change-Id: I22622983c50f1d564f40314f92e49646279826f5
Diffstat (limited to 'include/linux/wakeup_source_notify.h')
-rw-r--r--include/linux/wakeup_source_notify.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/linux/wakeup_source_notify.h b/include/linux/wakeup_source_notify.h
index 070a8bcab46..98db849d13d 100644
--- a/include/linux/wakeup_source_notify.h
+++ b/include/linux/wakeup_source_notify.h
@@ -19,14 +19,22 @@
#ifdef __KERNEL__
+enum wakeup_request_type {
+ WAKEUP_DISPLAY,
+};
+#define WAKEUP_EVENT_START(type) ((type) << 8)
+#define GET_WAKEUP_EVENT_TYPE(event) ((event) >> 8)
+
enum display_wakeup_request {
- DISPLAY_WAKE_EVENT_POWERKEY,
+ DISPLAY_WAKE_EVENT_BEGIN = WAKEUP_EVENT_START(WAKEUP_DISPLAY),
+ DISPLAY_WAKE_EVENT_POWERKEY = DISPLAY_WAKE_EVENT_BEGIN,
DISPLAY_WAKE_EVENT_TOUCH,
DISPLAY_WAKE_EVENT_GESTURE,
- DISPLAY_WAKE_EVENT_GESTURE_VIEW,
+ DISPLAY_WAKE_EVENT_GESTURE_VIEWON,
+ DISPLAY_WAKE_EVENT_GESTURE_VIEWOFF,
DISPLAY_WAKE_EVENT_DOCKON,
DISPLAY_WAKE_EVENT_DOCKOFF,
- DISPLAY_WAKE_EVENT_MAX
+ DISPLAY_WAKE_EVENT_END
};
#define notify_display_wakeup(reason) \