aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/wacom_wac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index 0dad786d2135..d51daf581488 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -2987,8 +2987,6 @@ void wacom_setup_device_quirks(struct wacom *wacom)
2987 struct wacom_features *features = &wacom->wacom_wac.features; 2987 struct wacom_features *features = &wacom->wacom_wac.features;
2988 2988
2989 /* The pen and pad share the same interface on most devices */ 2989 /* The pen and pad share the same interface on most devices */
2990 if (features->numbered_buttons > 0)
2991 features->device_type |= WACOM_DEVICETYPE_PAD;
2992 if (features->type == GRAPHIRE_BT || features->type == WACOM_G4 || 2990 if (features->type == GRAPHIRE_BT || features->type == WACOM_G4 ||
2993 features->type == DTUS || 2991 features->type == DTUS ||
2994 (features->type >= INTUOS3S && features->type <= WACOM_MO)) { 2992 (features->type >= INTUOS3S && features->type <= WACOM_MO)) {
@@ -3527,6 +3525,9 @@ int wacom_setup_pad_input_capabilities(struct input_dev *input_dev,
3527{ 3525{
3528 struct wacom_features *features = &wacom_wac->features; 3526 struct wacom_features *features = &wacom_wac->features;
3529 3527
3528 if ((features->type == HID_GENERIC) && features->numbered_buttons > 0)
3529 features->device_type |= WACOM_DEVICETYPE_PAD;
3530
3530 if (!(features->device_type & WACOM_DEVICETYPE_PAD)) 3531 if (!(features->device_type & WACOM_DEVICETYPE_PAD))
3531 return -ENODEV; 3532 return -ENODEV;
3532 3533