From 7b984b86eff1254d2b111520342274bbcd14c488 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Fri, 21 Aug 2015 13:27:59 -0400 Subject: [PATCH] M705 is a HID++ 1.0 device Signed-off-by: Benjamin Tissoires --- src/driver-hidpp10.c | 10 ++++++++-- src/driver-hidpp20.c | 8 -------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index 442dedcc..f6b136dd 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -137,12 +137,18 @@ hidpp10drv_remove(struct ratbag_device *device) #define USB_VENDOR_ID_LOGITECH 0x046d static const struct ratbag_id hidpp10drv_table[] = { + /* M705 */ + {.id = { .bustype = BUS_USB, + .vendor = USB_VENDOR_ID_LOGITECH, + .product = 0x101b, + .version = VERSION_ANY }, + }, + /* M570 */ {.id = { .bustype = BUS_USB, .vendor = USB_VENDOR_ID_LOGITECH, .product = 0x1028, .version = VERSION_ANY }, - .data = 1, }, /* G500s */ @@ -150,8 +156,8 @@ static const struct ratbag_id hidpp10drv_table[] = { .vendor = USB_VENDOR_ID_LOGITECH, .product = 0xc24e, .version = VERSION_ANY }, - .data = 1, }, + { }, }; diff --git a/src/driver-hidpp20.c b/src/driver-hidpp20.c index 4783acc2..436c2c1d 100644 --- a/src/driver-hidpp20.c +++ b/src/driver-hidpp20.c @@ -374,14 +374,6 @@ hidpp20drv_remove(struct ratbag_device *device) #define USB_VENDOR_ID_LOGITECH 0x046d static const struct ratbag_id hidpp20drv_table[] = { - /* M705 */ - {.id = { .bustype = BUS_USB, - .vendor = USB_VENDOR_ID_LOGITECH, - .product = 0x101b, - .version = VERSION_ANY }, - .data = 1, - }, - /* MX Master over unifying */ {.id = { .bustype = BUS_USB, .vendor = USB_VENDOR_ID_LOGITECH,