| .. | .. |
|---|
| 91 | 91 | #include <linux/leds.h> |
|---|
| 92 | 92 | #include <linux/usb/input.h> |
|---|
| 93 | 93 | #include <linux/power_supply.h> |
|---|
| 94 | +#include <linux/timer.h> |
|---|
| 94 | 95 | #include <asm/unaligned.h> |
|---|
| 95 | 96 | |
|---|
| 96 | 97 | /* |
|---|
| .. | .. |
|---|
| 152 | 153 | struct input_dev *input; |
|---|
| 153 | 154 | bool registered; |
|---|
| 154 | 155 | struct wacom_battery battery; |
|---|
| 156 | + ktime_t active_time; |
|---|
| 155 | 157 | } remotes[WACOM_MAX_REMOTES]; |
|---|
| 156 | 158 | }; |
|---|
| 157 | 159 | |
|---|
| .. | .. |
|---|
| 167 | 169 | struct delayed_work init_work; |
|---|
| 168 | 170 | struct wacom_remote *remote; |
|---|
| 169 | 171 | struct work_struct mode_change_work; |
|---|
| 172 | + struct timer_list idleprox_timer; |
|---|
| 170 | 173 | bool generic_has_leds; |
|---|
| 171 | 174 | struct wacom_leds { |
|---|
| 172 | 175 | struct wacom_group_leds *groups; |
|---|
| .. | .. |
|---|
| 239 | 242 | struct wacom_led *wacom_led_next(struct wacom *wacom, struct wacom_led *cur); |
|---|
| 240 | 243 | int wacom_equivalent_usage(int usage); |
|---|
| 241 | 244 | int wacom_initialize_leds(struct wacom *wacom); |
|---|
| 245 | +void wacom_idleprox_timeout(struct timer_list *list); |
|---|
| 242 | 246 | #endif |
|---|