input: sec_ts: Use KEY_WAKEUP for DT2W
authorLuK1337 <priv.luk@gmail.com>
Sat, 17 Aug 2019 22:54:54 +0000 (00:54 +0200)
committerivanmeler <i_ivan@windowslive.com>
Tue, 10 May 2022 18:18:37 +0000 (18:18 +0000)
drivers/input/touchscreen/sec_ts/sec_ts.c
drivers/input/touchscreen/sec_ts_y661/sec_ts.c

index cf497af934818a755044ec458a39ae8843153684..6e2da939dca6f74f935eff19e7b5679ce04c5197 100644 (file)
@@ -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);
index 00e833222b2bd060fd47787b41479d910e5c75b3..d3fc95796e23f94e9a5ae87a1b8e98580e67fd7f 100644 (file)
@@ -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);