.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * drivers/input/tablet/wacom.h |
---|
3 | 4 | * |
---|
.. | .. |
---|
78 | 79 | */ |
---|
79 | 80 | |
---|
80 | 81 | /* |
---|
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. |
---|
85 | 82 | */ |
---|
86 | 83 | #ifndef WACOM_H |
---|
87 | 84 | #define WACOM_H |
---|
.. | .. |
---|
94 | 91 | #include <linux/leds.h> |
---|
95 | 92 | #include <linux/usb/input.h> |
---|
96 | 93 | #include <linux/power_supply.h> |
---|
| 94 | +#include <linux/timer.h> |
---|
97 | 95 | #include <asm/unaligned.h> |
---|
98 | 96 | |
---|
99 | 97 | /* |
---|
.. | .. |
---|
155 | 153 | struct input_dev *input; |
---|
156 | 154 | bool registered; |
---|
157 | 155 | struct wacom_battery battery; |
---|
| 156 | + ktime_t active_time; |
---|
158 | 157 | } remotes[WACOM_MAX_REMOTES]; |
---|
159 | 158 | }; |
---|
160 | 159 | |
---|
.. | .. |
---|
170 | 169 | struct delayed_work init_work; |
---|
171 | 170 | struct wacom_remote *remote; |
---|
172 | 171 | struct work_struct mode_change_work; |
---|
| 172 | + struct timer_list idleprox_timer; |
---|
173 | 173 | bool generic_has_leds; |
---|
174 | 174 | struct wacom_leds { |
---|
175 | 175 | struct wacom_group_leds *groups; |
---|
.. | .. |
---|
242 | 242 | struct wacom_led *wacom_led_next(struct wacom *wacom, struct wacom_led *cur); |
---|
243 | 243 | int wacom_equivalent_usage(int usage); |
---|
244 | 244 | int wacom_initialize_leds(struct wacom *wacom); |
---|
| 245 | +void wacom_idleprox_timeout(struct timer_list *list); |
---|
245 | 246 | #endif |
---|