diff options
| author | Wengang Wu <wgw@motorola.com> | 2014-07-18 14:13:59 -0500 | 
|---|---|---|
| committer | Wengang Wu <wgw@motorola.com> | 2014-07-18 14:13:59 -0500 | 
| commit | 5be4e5b903e884f4431ccb750b5c027df47f74db (patch) | |
| tree | 68d630cea96785dc44b1014a5b69d0135ac67389 /include/linux/wakeup_source_notify.h | |
| parent | 0e4a00c83a912944beed3d2d36915278a0d418f7 (diff) | |
| download | olio-linux-3.10-5be4e5b903e884f4431ccb750b5c027df47f74db.tar.xz olio-linux-3.10-5be4e5b903e884f4431ccb750b5c027df47f74db.zip  | |
IKXCLOCK-2896 Display: support ambient mode timeout
Change-Id: I28422cfbfefb03671ad6868eb87a828481982a9c
Diffstat (limited to 'include/linux/wakeup_source_notify.h')
| -rw-r--r-- | include/linux/wakeup_source_notify.h | 11 | 
1 files changed, 10 insertions, 1 deletions
diff --git a/include/linux/wakeup_source_notify.h b/include/linux/wakeup_source_notify.h index 9109d1cec0f..070a8bcab46 100644 --- a/include/linux/wakeup_source_notify.h +++ b/include/linux/wakeup_source_notify.h @@ -20,9 +20,18 @@  #ifdef __KERNEL__  enum display_wakeup_request { -	DISPLAY_WAKE_EVENT, +	DISPLAY_WAKE_EVENT_POWERKEY, +	DISPLAY_WAKE_EVENT_TOUCH, +	DISPLAY_WAKE_EVENT_GESTURE, +	DISPLAY_WAKE_EVENT_GESTURE_VIEW, +	DISPLAY_WAKE_EVENT_DOCKON, +	DISPLAY_WAKE_EVENT_DOCKOFF, +	DISPLAY_WAKE_EVENT_MAX  }; +#define	notify_display_wakeup(reason)	\ +	wakeup_source_notify_subscriber(DISPLAY_WAKE_EVENT_##reason) +  extern void wakeup_source_register_notify(struct notifier_block *nb);  extern void wakeup_source_unregister_notify(struct notifier_block *nb);  extern void wakeup_source_notify_subscriber(unsigned long event);  |