key: add rk_send_wakeup_key function
authorwdc <wdc@rock-chips.com>
Wed, 5 Mar 2014 06:07:16 +0000 (14:07 +0800)
committerwdc <wdc@rock-chips.com>
Wed, 5 Mar 2014 06:07:48 +0000 (14:07 +0800)
drivers/input/keyboard/rk_keys.c

index 5a8b53631e44b7f23e8dc221b6a39324c4ae086c..8dc4d84e151154cb53ac18b4ed1e8a101a7a895c 100755 (executable)
@@ -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)
 {