From: LuK1337 Date: Sat, 17 Aug 2019 22:54:54 +0000 (+0200) Subject: input: sec_ts: Use KEY_WAKEUP for DT2W X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9ee7ce95893cf3083732a3bd7bd560ea3d4d5a02;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git input: sec_ts: Use KEY_WAKEUP for DT2W --- 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);