projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c45ce17
)
key: add rk_send_wakeup_key function
author
wdc
<wdc@rock-chips.com>
Wed, 5 Mar 2014 06:07:16 +0000
(14:07 +0800)
committer
wdc
<wdc@rock-chips.com>
Wed, 5 Mar 2014 06:07:48 +0000
(14:07 +0800)
drivers/input/keyboard/rk_keys.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/rk_keys.c
b/drivers/input/keyboard/rk_keys.c
index 5a8b53631e44b7f23e8dc221b6a39324c4ae086c..8dc4d84e151154cb53ac18b4ed1e8a101a7a895c 100755
(executable)
--- a/
drivers/input/keyboard/rk_keys.c
+++ b/
drivers/input/keyboard/rk_keys.c
@@
-103,6
+103,19
@@
void rk_send_power_key(int state)
input_sync(sinput_dev);
}
}
+EXPORT_SYMBOL(rk_send_power_key);
+
+void rk_send_wakeup_key(void)
+{
+ if (!sinput_dev)
+ return;
+
+ input_report_key(sinput_dev, KEY_WAKEUP, 1);
+ input_sync(sinput_dev);
+ input_report_key(sinput_dev, KEY_WAKEUP, 0);
+ input_sync(sinput_dev);
+}
+EXPORT_SYMBOL(rk_send_wakeup_key);
static void keys_timer(unsigned long _data)
{