[media] dibusb: fix sparse warnings

drivers/media/usb/dvb-usb/dibusb-common.c:261:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dibusb-common.c:262:52: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dibusb-common.c:300:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dibusb-common.c:301:44: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dibusb-common.c:313:47: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dibusb-common.c:314:47: warning: restricted __le16 degrades to integer

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Hans Verkuil 2014-08-20 16:32:26 -03:00 committed by Mauro Carvalho Chehab
parent 4bf167a373
commit b565e71dd2

View File

@ -258,8 +258,8 @@ static struct dib3000mc_config mod3000p_dib3000p_config = {
int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap) int dibusb_dib3000mc_frontend_attach(struct dvb_usb_adapter *adap)
{ {
if (adap->dev->udev->descriptor.idVendor == USB_VID_LITEON && if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON &&
adap->dev->udev->descriptor.idProduct == le16_to_cpu(adap->dev->udev->descriptor.idProduct) ==
USB_PID_LITEON_DVB_T_WARM) { USB_PID_LITEON_DVB_T_WARM) {
msleep(1000); msleep(1000);
} }
@ -297,8 +297,8 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
struct i2c_adapter *tun_i2c; struct i2c_adapter *tun_i2c;
// First IF calibration for Liteon Sticks // First IF calibration for Liteon Sticks
if (adap->dev->udev->descriptor.idVendor == USB_VID_LITEON && if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_LITEON &&
adap->dev->udev->descriptor.idProduct == USB_PID_LITEON_DVB_T_WARM) { le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_LITEON_DVB_T_WARM) {
dibusb_read_eeprom_byte(adap->dev,0x7E,&a); dibusb_read_eeprom_byte(adap->dev,0x7E,&a);
dibusb_read_eeprom_byte(adap->dev,0x7F,&b); dibusb_read_eeprom_byte(adap->dev,0x7F,&b);
@ -310,8 +310,8 @@ int dibusb_dib3000mc_tuner_attach(struct dvb_usb_adapter *adap)
else else
warn("LITE-ON DVB-T: Strange IF1 calibration :%2X %2X\n", a, b); warn("LITE-ON DVB-T: Strange IF1 calibration :%2X %2X\n", a, b);
} else if (adap->dev->udev->descriptor.idVendor == USB_VID_DIBCOM && } else if (le16_to_cpu(adap->dev->udev->descriptor.idVendor) == USB_VID_DIBCOM &&
adap->dev->udev->descriptor.idProduct == USB_PID_DIBCOM_MOD3001_WARM) { le16_to_cpu(adap->dev->udev->descriptor.idProduct) == USB_PID_DIBCOM_MOD3001_WARM) {
u8 desc; u8 desc;
dibusb_read_eeprom_byte(adap->dev, 7, &desc); dibusb_read_eeprom_byte(adap->dev, 7, &desc);
if (desc == 2) { if (desc == 2) {