hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/input/mt.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 #ifndef _INPUT_MT_H
23 #define _INPUT_MT_H
34
....@@ -5,10 +6,6 @@
56 * Input Multitouch Library
67 *
78 * Copyright (c) 2010 Henrik Rydberg
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License version 2 as published by
11
- * the Free Software Foundation.
129 */
1310
1411 #include <linux/input.h>
....@@ -103,6 +100,11 @@
103100 bool input_mt_report_slot_state(struct input_dev *dev,
104101 unsigned int tool_type, bool active);
105102
103
+static inline void input_mt_report_slot_inactive(struct input_dev *dev)
104
+{
105
+ input_mt_report_slot_state(dev, 0, false);
106
+}
107
+
106108 void input_mt_report_finger_count(struct input_dev *dev, int count);
107109 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count);
108110 void input_mt_drop_unused(struct input_dev *dev);