diff options
Diffstat (limited to 'drivers/usb/class/usbtmc.c')
-rw-r--r-- | drivers/usb/class/usbtmc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c index 60dd8918aeb9..66c4001306f0 100644 --- a/drivers/usb/class/usbtmc.c +++ b/drivers/usb/class/usbtmc.c | |||
@@ -1117,11 +1117,11 @@ static int usbtmc_probe(struct usb_interface *intf, | |||
1117 | /* Determine if it is a Rigol or not */ | 1117 | /* Determine if it is a Rigol or not */ |
1118 | data->rigol_quirk = 0; | 1118 | data->rigol_quirk = 0; |
1119 | dev_dbg(&intf->dev, "Trying to find if device Vendor 0x%04X Product 0x%04X has the RIGOL quirk\n", | 1119 | dev_dbg(&intf->dev, "Trying to find if device Vendor 0x%04X Product 0x%04X has the RIGOL quirk\n", |
1120 | data->usb_dev->descriptor.idVendor, | 1120 | le16_to_cpu(data->usb_dev->descriptor.idVendor), |
1121 | data->usb_dev->descriptor.idProduct); | 1121 | le16_to_cpu(data->usb_dev->descriptor.idProduct)); |
1122 | for(n = 0; usbtmc_id_quirk[n].idVendor > 0; n++) { | 1122 | for(n = 0; usbtmc_id_quirk[n].idVendor > 0; n++) { |
1123 | if ((usbtmc_id_quirk[n].idVendor == data->usb_dev->descriptor.idVendor) && | 1123 | if ((usbtmc_id_quirk[n].idVendor == le16_to_cpu(data->usb_dev->descriptor.idVendor)) && |
1124 | (usbtmc_id_quirk[n].idProduct == data->usb_dev->descriptor.idProduct)) { | 1124 | (usbtmc_id_quirk[n].idProduct == le16_to_cpu(data->usb_dev->descriptor.idProduct))) { |
1125 | dev_dbg(&intf->dev, "Setting this device as having the RIGOL quirk\n"); | 1125 | dev_dbg(&intf->dev, "Setting this device as having the RIGOL quirk\n"); |
1126 | data->rigol_quirk = 1; | 1126 | data->rigol_quirk = 1; |
1127 | break; | 1127 | break; |