diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-04-01 00:08:56 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-04-01 00:08:56 +0200 |
commit | 0a8042251297cb7c213c77d9b9c6b5ded635e76c (patch) | |
tree | 452e9865116ba2bc7268e23bf64ec2d938a101aa /hw/usb/hid-logitech-hidpp20.c | |
parent | 8442591a795a089a48da1b8b0089612c1e029b51 (diff) | |
download | qemu-0a8042251297cb7c213c77d9b9c6b5ded635e76c.tar.gz |
unifying: less magic numbers, fix device type for T650
This makes it easier to switch between 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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb/hid-logitech-hidpp20.c b/hw/usb/hid-logitech-hidpp20.c index b616989379..7f679d7828 100644 --- a/hw/usb/hid-logitech-hidpp20.c +++ b/hw/usb/hid-logitech-hidpp20.c @@ -317,11 +317,11 @@ static const HidppFeature features_t650[] = { void hidpp20_init_features(LHidDevice *hd) { switch (hd->info.wireless_pid) { - case 0x4013: + case WPID_M525: hd->info.features = features_m525; hd->info.features_count = ARRAY_SIZE(features_m525); break; - case 0x4101: + case WPID_T650: hd->info.features = features_t650; hd->info.features_count = ARRAY_SIZE(features_t650); break; |