hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/drivers/input/touchscreen/cyttsp4_core.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * cyttsp4_core.c
34 * Cypress TrueTouch(TM) Standard Product V4 Core driver module.
....@@ -8,18 +9,7 @@
89 *
910 * Copyright (C) 2012 Cypress Semiconductor
1011 *
11
- * This program is free software; you can redistribute it and/or
12
- * modify it under the terms of the GNU General Public License
13
- * version 2, and only version 2, as published by the
14
- * Free Software Foundation.
15
- *
16
- * This program is distributed in the hope that it will be useful,
17
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
18
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
- * GNU General Public License for more details.
20
- *
2112 * Contact Cypress Semiconductor at www.cypress.com <ttdrivers@cypress.com>
22
- *
2313 */
2414
2515 #include "cyttsp4_core.h"
....@@ -754,8 +744,7 @@
754744
755745 for (t = 0; t < max_slots; t++) {
756746 input_mt_slot(md->input, t);
757
- input_mt_report_slot_state(md->input,
758
- MT_TOOL_FINGER, false);
747
+ input_mt_report_slot_inactive(md->input);
759748 }
760749 }
761750
....@@ -855,7 +844,7 @@
855844 if (ids[t])
856845 continue;
857846 input_mt_slot(input, t);
858
- input_mt_report_slot_state(input, MT_TOOL_FINGER, false);
847
+ input_mt_report_slot_inactive(input);
859848 }
860849
861850 input_sync(input);