hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/hid/wacom.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * drivers/input/tablet/wacom.h
34 *
....@@ -78,10 +79,6 @@
7879 */
7980
8081 /*
81
- * This program is free software; you can redistribute it and/or modify
82
- * it under the terms of the GNU General Public License as published by
83
- * the Free Software Foundation; either version 2 of the License, or
84
- * (at your option) any later version.
8582 */
8683 #ifndef WACOM_H
8784 #define WACOM_H
....@@ -94,6 +91,7 @@
9491 #include <linux/leds.h>
9592 #include <linux/usb/input.h>
9693 #include <linux/power_supply.h>
94
+#include <linux/timer.h>
9795 #include <asm/unaligned.h>
9896
9997 /*
....@@ -155,6 +153,7 @@
155153 struct input_dev *input;
156154 bool registered;
157155 struct wacom_battery battery;
156
+ ktime_t active_time;
158157 } remotes[WACOM_MAX_REMOTES];
159158 };
160159
....@@ -170,6 +169,7 @@
170169 struct delayed_work init_work;
171170 struct wacom_remote *remote;
172171 struct work_struct mode_change_work;
172
+ struct timer_list idleprox_timer;
173173 bool generic_has_leds;
174174 struct wacom_leds {
175175 struct wacom_group_leds *groups;
....@@ -242,4 +242,5 @@
242242 struct wacom_led *wacom_led_next(struct wacom *wacom, struct wacom_led *cur);
243243 int wacom_equivalent_usage(int usage);
244244 int wacom_initialize_leds(struct wacom *wacom);
245
+void wacom_idleprox_timeout(struct timer_list *list);
245246 #endif