diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-27 03:27:10 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-27 03:27:10 -0400 |
| commit | 993808253ca256b8ca7f8ff90d9935d7c99cd32d (patch) | |
| tree | ff51c2b3f7625ae8d89b45962cc3dbc59a5152f8 /drivers/input/tablet/wacom.h | |
| parent | 10ce3cc919f50c2043b41ca968b43c26a3672600 (diff) | |
| parent | 131c713fd96e251fcb18f4d2d05f263aa41bb11f (diff) | |
Merge branch 'next' into for-linus
Conflicts:
drivers/input/tablet/wacom_sys.c
Diffstat (limited to 'drivers/input/tablet/wacom.h')
| -rw-r--r-- | drivers/input/tablet/wacom.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/input/tablet/wacom.h b/drivers/input/tablet/wacom.h index 0783864a7dc2..b4842d0e61dd 100644 --- a/drivers/input/tablet/wacom.h +++ b/drivers/input/tablet/wacom.h | |||
| @@ -88,6 +88,7 @@ | |||
| 88 | #include <linux/mod_devicetable.h> | 88 | #include <linux/mod_devicetable.h> |
| 89 | #include <linux/init.h> | 89 | #include <linux/init.h> |
| 90 | #include <linux/usb/input.h> | 90 | #include <linux/usb/input.h> |
| 91 | #include <linux/power_supply.h> | ||
| 91 | #include <asm/unaligned.h> | 92 | #include <asm/unaligned.h> |
| 92 | 93 | ||
| 93 | /* | 94 | /* |
| @@ -112,6 +113,7 @@ struct wacom { | |||
| 112 | struct urb *irq; | 113 | struct urb *irq; |
| 113 | struct wacom_wac wacom_wac; | 114 | struct wacom_wac wacom_wac; |
| 114 | struct mutex lock; | 115 | struct mutex lock; |
| 116 | struct work_struct work; | ||
| 115 | bool open; | 117 | bool open; |
| 116 | char phys[32]; | 118 | char phys[32]; |
| 117 | struct wacom_led { | 119 | struct wacom_led { |
| @@ -120,8 +122,15 @@ struct wacom { | |||
| 120 | u8 hlv; /* status led brightness button pressed (1..127) */ | 122 | u8 hlv; /* status led brightness button pressed (1..127) */ |
| 121 | u8 img_lum; /* OLED matrix display brightness */ | 123 | u8 img_lum; /* OLED matrix display brightness */ |
| 122 | } led; | 124 | } led; |
| 125 | struct power_supply battery; | ||
| 123 | }; | 126 | }; |
| 124 | 127 | ||
| 128 | static inline void wacom_schedule_work(struct wacom_wac *wacom_wac) | ||
| 129 | { | ||
| 130 | struct wacom *wacom = container_of(wacom_wac, struct wacom, wacom_wac); | ||
| 131 | schedule_work(&wacom->work); | ||
| 132 | } | ||
| 133 | |||
| 125 | extern const struct usb_device_id wacom_ids[]; | 134 | extern const struct usb_device_id wacom_ids[]; |
| 126 | 135 | ||
| 127 | void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len); | 136 | void wacom_wac_irq(struct wacom_wac *wacom_wac, size_t len); |
