diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-22 02:28:35 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-22 02:28:35 -0400 |
commit | 57b8628bb0ac4e47c806e45c5bbd89282e93869b (patch) | |
tree | ee9289f0898054474b7e5054abdb3ffb78666436 /drivers/input/tablet | |
parent | 486c8aba39e5f194519cd5c0e85e5d1de8b74b03 (diff) | |
parent | 66f75a5d028beaf67c931435fdc3e7823125730c (diff) |
Merge commit 'v3.4-rc4' into next
Diffstat (limited to 'drivers/input/tablet')
-rw-r--r-- | drivers/input/tablet/Kconfig | 2 | ||||
-rw-r--r-- | drivers/input/tablet/wacom_sys.c | 2 | ||||
-rw-r--r-- | drivers/input/tablet/wacom_wac.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/drivers/input/tablet/Kconfig b/drivers/input/tablet/Kconfig index 0edeb949109b..bed7cbf84cfd 100644 --- a/drivers/input/tablet/Kconfig +++ b/drivers/input/tablet/Kconfig | |||
@@ -78,6 +78,8 @@ config TABLET_USB_WACOM | |||
78 | depends on USB_ARCH_HAS_HCD | 78 | depends on USB_ARCH_HAS_HCD |
79 | select POWER_SUPPLY | 79 | select POWER_SUPPLY |
80 | select USB | 80 | select USB |
81 | select NEW_LEDS | ||
82 | select LEDS_CLASS | ||
81 | help | 83 | help |
82 | Say Y here if you want to use the USB version of the Wacom Intuos | 84 | Say Y here if you want to use the USB version of the Wacom Intuos |
83 | or Graphire tablet. Make sure to say Y to "Mouse support" | 85 | or Graphire tablet. Make sure to say Y to "Mouse support" |
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index 1c874adb7053..98e9dd692d68 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
@@ -1052,6 +1052,8 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i | |||
1052 | return -EINVAL; | 1052 | return -EINVAL; |
1053 | 1053 | ||
1054 | wacom = kzalloc(sizeof(struct wacom), GFP_KERNEL); | 1054 | wacom = kzalloc(sizeof(struct wacom), GFP_KERNEL); |
1055 | if (!wacom) | ||
1056 | return -ENOMEM; | ||
1055 | 1057 | ||
1056 | wacom_wac = &wacom->wacom_wac; | 1058 | wacom_wac = &wacom->wacom_wac; |
1057 | wacom_wac->features = *((struct wacom_features *)id->driver_info); | 1059 | wacom_wac->features = *((struct wacom_features *)id->driver_info); |
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index a6173431d803..d96e186f71dc 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c | |||
@@ -977,7 +977,7 @@ static int wacom_bpt3_touch(struct wacom_wac *wacom) | |||
977 | { | 977 | { |
978 | struct input_dev *input = wacom->input; | 978 | struct input_dev *input = wacom->input; |
979 | unsigned char *data = wacom->data; | 979 | unsigned char *data = wacom->data; |
980 | int count = data[1] & 0x03; | 980 | int count = data[1] & 0x07; |
981 | int i; | 981 | int i; |
982 | 982 | ||
983 | if (data[0] != 0x02) | 983 | if (data[0] != 0x02) |