From 0a8042251297cb7c213c77d9b9c6b5ded635e76c Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 1 Apr 2014 00:08:56 +0200 Subject: unifying: less magic numbers, fix device type for T650 This makes it easier to switch between devices. Signed-off-by: Peter Wu --- hw/usb/hid-logitech-hidpp20.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/usb/hid-logitech-hidpp20.c') 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; -- cgit v1.2.1