aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb/dibusb-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/usb/dvb-usb/dibusb-common.c')
-rw-r--r--drivers/media/usb/dvb-usb/dibusb-common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/usb/dvb-usb/dibusb-common.c b/drivers/media/usb/dvb-usb/dibusb-common.c
index 6d68af0c49c8..ef3a8f75f82e 100644
--- a/drivers/media/usb/dvb-usb/dibusb-common.c
+++ b/drivers/media/usb/dvb-usb/dibusb-common.c
@@ -258,8 +258,8 @@ static struct dib3000mc_config mod3000p_dib3000p_config = {
258 258
259int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap) 259int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap)
260{ 260{
261 if (adap->dev->udev->descriptor.idVendor == USB_VID_LITEON && 261 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON &&
262 adap->dev->udev->descriptor.idProduct == 262 le16_to_cpu(adap->dev->udev->descriptor.idProduct) ==
263 USB_PID_LITEON_DVB_T_WARM) { 263 USB_PID_LITEON_DVB_T_WARM) {
264 msleep(1000); 264 msleep(1000);
265 } 265 }
@@ -297,8 +297,8 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
297 struct i2c_adapter *tun_i2c; 297 struct i2c_adapter *tun_i2c;
298 298
299 // First IF calibration for Liteon Sticks 299 // First IF calibration for Liteon Sticks
300 if (adap->dev->udev->descriptor.idVendor == USB_VID_LITEON && 300 if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON &&
301 adap->dev->udev->descriptor.idProduct == USB_PID_LITEON_DVB_T_WARM) { 301 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_LITEON_DVB_T_WARM) {
302 302
303 dibusb_read_eeprom_byte(adap->dev,0x7E,&a); 303 dibusb_read_eeprom_byte(adap->dev,0x7E,&a);
304 dibusb_read_eeprom_byte(adap->dev,0x7F,&b); 304 dibusb_read_eeprom_byte(adap->dev,0x7F,&b);
@@ -310,8 +310,8 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
310 else 310 else
311 warn("LITE-ON DVB-T: Strange IF1 calibration :%2X %2X\n", a, b); 311 warn("LITE-ON DVB-T: Strange IF1 calibration :%2X %2X\n", a, b);
312 312
313 } else if (adap->dev->udev->descriptor.idVendor == USB_VID_DIBCOM && 313 } else if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_DIBCOM &&
314 adap->dev->udev->descriptor.idProduct == USB_PID_DIBCOM_MOD3001_WARM) { 314 le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_DIBCOM_MOD3001_WARM) {
315 u8 desc; 315 u8 desc;
316 dibusb_read_eeprom_byte(adap->dev, 7, &desc); 316 dibusb_read_eeprom_byte(adap->dev, 7, &desc);
317 if (desc == 2) { 317 if (desc == 2) {