aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/wacom_sys.c2
-rw-r--r--drivers/hid/wacom_wac.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c
index 9e4e1886828d..a8b7f16f76fa 100644
--- a/drivers/hid/wacom_sys.c
+++ b/drivers/hid/wacom_sys.c
@@ -1035,7 +1035,7 @@ static struct input_dev *wacom_allocate_input(struct wacom *wacom)
1035 input_dev->uniq = hdev->uniq; 1035 input_dev->uniq = hdev->uniq;
1036 input_dev->id.bustype = hdev->bus; 1036 input_dev->id.bustype = hdev->bus;
1037 input_dev->id.vendor = hdev->vendor; 1037 input_dev->id.vendor = hdev->vendor;
1038 input_dev->id.product = hdev->product; 1038 input_dev->id.product = wacom_wac->pid ? wacom_wac->pid : hdev->product;
1039 input_dev->id.version = hdev->version; 1039 input_dev->id.version = hdev->version;
1040 input_set_drvdata(input_dev, wacom); 1040 input_set_drvdata(input_dev, wacom);
1041 1041
diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c
index c3cbbfb5811f..b8180e40534d 100644
--- a/drivers/hid/wacom_wac.c
+++ b/drivers/hid/wacom_wac.c
@@ -1990,6 +1990,9 @@ int wacom_setup_pad_input_capabilities(struct input_dev *input_dev,
1990 input_set_abs_params(input_dev, ABS_X, 0, 1, 0, 0); 1990 input_set_abs_params(input_dev, ABS_X, 0, 1, 0, 0);
1991 input_set_abs_params(input_dev, ABS_Y, 0, 1, 0, 0); 1991 input_set_abs_params(input_dev, ABS_Y, 0, 1, 0, 0);
1992 1992
1993 /* kept for making udev and libwacom accepting the pad */
1994 __set_bit(BTN_STYLUS, input_dev->keybit);
1995
1993 switch (features->type) { 1996 switch (features->type) {
1994 case GRAPHIRE_BT: 1997 case GRAPHIRE_BT:
1995 __set_bit(BTN_0, input_dev->keybit); 1998 __set_bit(BTN_0, input_dev->keybit);