Skip to content

Commit 9e4dbc4

Browse files
drinkcatJiri Kosina
authored andcommitted
HID: google: add magnemite/masterball USB ids
Add 2 additional hammer-like devices. Signed-off-by: Nicolas Boichat <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent d9d4b1e commit 9e4dbc4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

drivers/hid/hid-google-hammer.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,10 @@ static int hammer_probe(struct hid_device *hdev,
469469
static const struct hid_device_id hammer_devices[] = {
470470
{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,
471471
USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_HAMMER) },
472+
{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,
473+
USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_MAGNEMITE) },
474+
{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,
475+
USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_MASTERBALL) },
472476
{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,
473477
USB_VENDOR_ID_GOOGLE, USB_DEVICE_ID_GOOGLE_STAFF) },
474478
{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,

drivers/hid/hid-ids.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@
476476
#define USB_DEVICE_ID_GOOGLE_STAFF 0x502b
477477
#define USB_DEVICE_ID_GOOGLE_WAND 0x502d
478478
#define USB_DEVICE_ID_GOOGLE_WHISKERS 0x5030
479+
#define USB_DEVICE_ID_GOOGLE_MASTERBALL 0x503c
480+
#define USB_DEVICE_ID_GOOGLE_MAGNEMITE 0x503d
479481

480482
#define USB_VENDOR_ID_GOTOP 0x08f2
481483
#define USB_DEVICE_ID_SUPER_Q2 0x007f

0 commit comments

Comments
 (0)