Skip to content

Commit 6da9548

Browse files
committed
Use generic name for Yiynova PID
Use "tablet" in Yiynova tablet PID macro name, as there are many more models using different names.
1 parent 698612b commit 6da9548

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

hid-huion.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static int huion_probe(struct hid_device *hdev, const struct hid_device_id *id)
224224

225225
switch (id->product) {
226226
case USB_DEVICE_ID_HUION_TABLET:
227-
case USB_DEVICE_ID_YIYNOVA_MXP:
227+
case USB_DEVICE_ID_YIYNOVA_TABLET:
228228
/* If this is the pen interface */
229229
if (intf->cur_altsetting->desc.bInterfaceNumber == 0) {
230230
rc = huion_tablet_enable(hdev);
@@ -269,7 +269,7 @@ static int huion_raw_event(struct hid_device *hdev, struct hid_report *report,
269269
static const struct hid_device_id huion_devices[] = {
270270
{ HID_USB_DEVICE(USB_VENDOR_ID_HUION, USB_DEVICE_ID_HUION_TABLET) },
271271
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_HUION_TABLET) },
272-
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_YIYNOVA_MXP) },
272+
{ HID_USB_DEVICE(USB_VENDOR_ID_UCLOGIC, USB_DEVICE_ID_YIYNOVA_TABLET) },
273273
{ }
274274
};
275275
MODULE_DEVICE_TABLE(hid, huion_devices);

hid-ids.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#define USB_VENDOR_ID_HUION 0x256c
99
#define USB_VENDOR_ID_UCLOGIC 0x5543
1010
#define USB_DEVICE_ID_HUION_TABLET 0x006e
11-
/* Yiynova MSP19U(+) and MVP22U+ tablets */
12-
#define USB_DEVICE_ID_YIYNOVA_MXP 0x004d
11+
#define USB_DEVICE_ID_YIYNOVA_TABLET 0x004d
1312

1413
#endif

0 commit comments

Comments
 (0)