diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-31 12:50:13 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-31 13:06:45 +0200 |
commit | 8d61d8cd7379be99075e674894a89e144ef20b91 (patch) | |
tree | ba16d7bee2c8e7ed1d75aecdf3a88ecbf443ae96 /hw/usb/hid-logitech-hidpp20.c | |
parent | 7beab627e87ee378969fd46b7c799de696fc500a (diff) | |
download | qemu-8d61d8cd7379be99075e674894a89e144ef20b91.tar.gz |
unifying: Fix PID of T650 touchpad
Also safe-guard against missing feature array for HID++ 2.0 devices.
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-hidpp20.c')
-rw-r--r-- | hw/usb/hid-logitech-hidpp20.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/usb/hid-logitech-hidpp20.c b/hw/usb/hid-logitech-hidpp20.c index 4e43eb26a1..a3a50e6cd3 100644 --- a/hw/usb/hid-logitech-hidpp20.c +++ b/hw/usb/hid-logitech-hidpp20.c @@ -317,10 +317,13 @@ void hidpp20_init_features(LHidDevice *hd) { hd->info.features = features_m525; hd->info.features_count = ARRAY_SIZE(features_m525); break; - case 0x4026: + case 0x4101: hd->info.features = features_t650; hd->info.features_count = ARRAY_SIZE(features_t650); break; + default: + /* HID++ 2.0 devices must always supply features */ + assert(!(hd->info.protocol_version >= 0x0200)); } } |