summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMatt Wagner <mwagner@nvidia.com>2013-03-04 14:55:58 -0800
committerMrutyunjay Sawant <msawant@nvidia.com>2013-03-06 06:30:16 -0800
commit661c141ec05dfe103b1584f3df233c5bfa1f0732 (patch)
tree8e9450e9aaacd7daf64aa2526f3803f335ee1ddc /include
parent23c796b25169446bcdbd3080490a693f73eb8d88 (diff)
input: gpio_keys: send event for wakeup key
Send event for the key that wakes up the system on resume Add wakeup callback for system to determine which GPIO woke it Bug 1245323 Change-Id: Id803eb34228bd9707e86f23cdafce21c585fb4c2 Signed-off-by: Matt Wagner <mwagner@nvidia.com> Reviewed-on: http://git-master/r/206068 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include')
-rw-r--r--include/linux/gpio_keys.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h
index a7e977ff4abf..563c1b34e41d 100644
--- a/include/linux/gpio_keys.h
+++ b/include/linux/gpio_keys.h
@@ -25,6 +25,7 @@ struct gpio_keys_platform_data {
unsigned int rep:1; /* enable input subsystem auto repeat */
int (*enable)(struct device *dev);
void (*disable)(struct device *dev);
+ int (*wakeup_key)(void);
const char *name; /* input device name */
};