summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2019-10-31 11:29:13 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-10-31 11:33:39 +0900
commitbf302d507c21ecc30780dcd512b392245304ed30 (patch)
tree6ec87b6480b6bd8567d8ea371d415256b172eb0c
parent9cba3131531ebb7152602a18a4bf5484c53198b4 (diff)
downloadlinux-4.9-exynos9110-bf302d507c21ecc30780dcd512b392245304ed30.tar.gz
linux-4.9-exynos9110-bf302d507c21ecc30780dcd512b392245304ed30.tar.bz2
linux-4.9-exynos9110-bf302d507c21ecc30780dcd512b392245304ed30.zip
Input: s2mpw02-power-key: support back key boostsubmit/tizen/20191106.012900accepted/tizen/unified/20191106.124703
Now, keymap can be changed and it is mainly for using back key instead of power key. So as like gpio-keys, it needs to consider back key boost. Support back key boost like gpio-keys. Change-Id: I22826afcbbe3ba933a63e9f9106f8d05e3767f3b Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--drivers/input/keyboard/s2mpw02_key.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/input/keyboard/s2mpw02_key.c b/drivers/input/keyboard/s2mpw02_key.c
index 2e63bb8be4f6..b96551d1109b 100644
--- a/drivers/input/keyboard/s2mpw02_key.c
+++ b/drivers/input/keyboard/s2mpw02_key.c
@@ -44,6 +44,7 @@
#ifdef CONFIG_DISPLAY_EARLY_DPMS
#include <drm/tgm_drm.h>
#endif
+#include <linux/trm.h>
#define WAKELOCK_TIME HZ/10
@@ -565,6 +566,12 @@ static void power_keys_power_report_event(struct power_button_data *bdata)
}
#endif
+#if defined(BACK_KEY_BOOSTER)
+ if ((*bdata->code == KEY_BACK) && (bdata->isr_status)) {
+ back_key_booster_turn_on();
+ }
+#endif
+
#ifdef CONFIG_SLEEP_MONITOR
if ((ddata->press_cnt < CNT_MARK) && (bdata->isr_status) && (!!state))
ddata->press_cnt++;