hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/hid/wacom.h
....@@ -91,6 +91,7 @@
9191 #include <linux/leds.h>
9292 #include <linux/usb/input.h>
9393 #include <linux/power_supply.h>
94
+#include <linux/timer.h>
9495 #include <asm/unaligned.h>
9596
9697 /*
....@@ -152,6 +153,7 @@
152153 struct input_dev *input;
153154 bool registered;
154155 struct wacom_battery battery;
156
+ ktime_t active_time;
155157 } remotes[WACOM_MAX_REMOTES];
156158 };
157159
....@@ -167,6 +169,7 @@
167169 struct delayed_work init_work;
168170 struct wacom_remote *remote;
169171 struct work_struct mode_change_work;
172
+ struct timer_list idleprox_timer;
170173 bool generic_has_leds;
171174 struct wacom_leds {
172175 struct wacom_group_leds *groups;
....@@ -239,4 +242,5 @@
239242 struct wacom_led *wacom_led_next(struct wacom *wacom, struct wacom_led *cur);
240243 int wacom_equivalent_usage(int usage);
241244 int wacom_initialize_leds(struct wacom *wacom);
245
+void wacom_idleprox_timeout(struct timer_list *list);
242246 #endif