Hi all,
I have done a little hack to have android resume on one click. Android
needs the resume keyboard
event.
Regards Michael
Single click resume on android. This patch pass the keyboard char during
resume and give to the android the possibilty to acquire wake lock on
keyboard event.
Signed-of-by: Michael Trimarchi <[email protected]>
---
drivers/mfd/Kconfig | 5 +++++
drivers/mfd/pcf50633-core.c | 3 +++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 55b2e33..7074d83 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -226,6 +226,11 @@ config MFD_PCF50633
facilities, and registers devices for the various functions
so that function-specific drivers can bind to them.
+config MFD_PCF50633_ANDROID
+ bool
+ depends on ANDROID && MFD_PCF50633
+ default y
+
config PCF50633_ADC
tristate "Support for NXP PCF50633 ADC"
depends on MFD_PCF50633
diff --git a/drivers/mfd/pcf50633-core.c b/drivers/mfd/pcf50633-core.c
index 29c9395..6621e9d 100644
--- a/drivers/mfd/pcf50633-core.c
+++ b/drivers/mfd/pcf50633-core.c
@@ -422,7 +422,10 @@ static void pcf50633_irq_worker(struct work_struct *work)
/* Make sure we don't pass on any ONKEY events to
* userspace now */
+#ifndef CONFIG_MFD_PCF50633_ANDROID
pcf_int[1] &= ~(PCF50633_INT2_ONKEYR | PCF50633_INT2_ONKEYF);
+#endif
+
}
for (i = 0; i < ARRAY_SIZE(pcf_int); i++) {
--
1.5.6.5