From 9ee7ce95893cf3083732a3bd7bd560ea3d4d5a02 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 18 Aug 2019 00:54:54 +0200 Subject: [PATCH] input: sec_ts: Use KEY_WAKEUP for DT2W --- drivers/input/touchscreen/sec_ts/sec_ts.c | 5 +++-- drivers/input/touchscreen/sec_ts_y661/sec_ts.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/sec_ts/sec_ts.c b/drivers/input/touchscreen/sec_ts/sec_ts.c index cf497af93481..6e2da939dca6 100644 --- a/drivers/input/touchscreen/sec_ts/sec_ts.c +++ b/drivers/input/touchscreen/sec_ts/sec_ts.c @@ -1438,9 +1438,9 @@ static void sec_ts_read_event(struct sec_ts_data *ts) __func__, ts->scrub_id); ts->all_spay_count++; } - input_report_key(ts->input_dev, KEY_BLACK_UI_GESTURE, 1); + input_report_key(ts->input_dev, KEY_WAKEUP, 1); input_sync(ts->input_dev); - input_report_key(ts->input_dev, KEY_BLACK_UI_GESTURE, 0); + input_report_key(ts->input_dev, KEY_WAKEUP, 0); } } break; @@ -2070,6 +2070,7 @@ static void sec_ts_set_input_prop(struct sec_ts_data *ts, struct input_dev *dev, set_bit(KEY_SIDE_GESTURE_LEFT, dev->keybit); } set_bit(propbit, dev->propbit); + set_bit(KEY_WAKEUP, dev->keybit); set_bit(KEY_HOMEPAGE, dev->keybit); input_set_capability(dev, EV_SW, SW_GLOVE); diff --git a/drivers/input/touchscreen/sec_ts_y661/sec_ts.c b/drivers/input/touchscreen/sec_ts_y661/sec_ts.c index 00e833222b2b..d3fc95796e23 100644 --- a/drivers/input/touchscreen/sec_ts_y661/sec_ts.c +++ b/drivers/input/touchscreen/sec_ts_y661/sec_ts.c @@ -1424,9 +1424,9 @@ static void sec_ts_read_event(struct sec_ts_data *ts) __func__, ts->scrub_id); ts->all_spay_count++; } - input_report_key(ts->input_dev, KEY_BLACK_UI_GESTURE, 1); + input_report_key(ts->input_dev, KEY_WAKEUP, 1); input_sync(ts->input_dev); - input_report_key(ts->input_dev, KEY_BLACK_UI_GESTURE, 0); + input_report_key(ts->input_dev, KEY_WAKEUP, 0); } } break; @@ -2059,6 +2059,7 @@ static void sec_ts_set_input_prop(struct sec_ts_data *ts, struct input_dev *dev, set_bit(KEY_SIDE_GESTURE_LEFT, dev->keybit); } set_bit(propbit, dev->propbit); + set_bit(KEY_WAKEUP, dev->keybit); set_bit(KEY_HOMEPAGE, dev->keybit); input_set_capability(dev, EV_SW, SW_GLOVE); -- 2.20.1