summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-01-24 17:29:48 +0000
committerPatrick Boettcher <devnull@localhost>2005-01-24 17:29:48 +0000
commit798aea71fd4046e8f2673d896b058eb0cac8298c (patch)
treeacdbbbd3f3b91addfd4783013a904d7bac934ffd
parent037230e32b6cbd50afb5f7fc94121664f78ae34f (diff)
downloadmediapointer-dvb-s2-798aea71fd4046e8f2673d896b058eb0cac8298c.tar.gz
mediapointer-dvb-s2-798aea71fd4046e8f2673d896b058eb0cac8298c.tar.bz2
- using le16_to_cpu for usb-device-descriptor-struct
-rw-r--r--linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c
index 978804947..36f74ec41 100644
--- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c
+++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c
@@ -362,8 +362,8 @@ static struct dibusb_usb_device * dibusb_find_device (struct usb_device *udev,in
for (i = 0; i < sizeof(dibusb_devices)/sizeof(struct dibusb_usb_device); i++) {
for (j = 0; j < DIBUSB_ID_MAX_NUM && dibusb_devices[i].cold_ids[j] != NULL; j++) {
deb_info("check for cold %x %x\n",dibusb_devices[i].cold_ids[j]->idVendor, dibusb_devices[i].cold_ids[j]->idProduct);
- if (dibusb_devices[i].cold_ids[j]->idVendor == udev->descriptor.idVendor &&
- dibusb_devices[i].cold_ids[j]->idProduct == udev->descriptor.idProduct) {
+ if (dibusb_devices[i].cold_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) &&
+ dibusb_devices[i].cold_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) {
*cold = 1;
return &dibusb_devices[i];
}
@@ -371,8 +371,8 @@ static struct dibusb_usb_device * dibusb_find_device (struct usb_device *udev,in
for (j = 0; j < DIBUSB_ID_MAX_NUM && dibusb_devices[i].warm_ids[j] != NULL; j++) {
deb_info("check for warm %x %x\n",dibusb_devices[i].warm_ids[j]->idVendor, dibusb_devices[i].warm_ids[j]->idProduct);
- if (dibusb_devices[i].warm_ids[j]->idVendor == udev->descriptor.idVendor &&
- dibusb_devices[i].warm_ids[j]->idProduct == udev->descriptor.idProduct) {
+ if (dibusb_devices[i].warm_ids[j]->idVendor == le16_to_cpu(udev->descriptor.idVendor) &&
+ dibusb_devices[i].warm_ids[j]->idProduct == le16_to_cpu(udev->descriptor.idProduct)) {
*cold = 0;
return &dibusb_devices[i];
}
@@ -395,7 +395,7 @@ static int dibusb_probe(struct usb_interface *intf,
if ((dibdev = dibusb_find_device(udev,&cold)) == NULL) {
err("something went very wrong, "
- "unknown product ID: %.4x",udev->descriptor.idProduct);
+ "unknown product ID: %.4x",le16_to_cpu(udev->descriptor.idProduct));
return -ENODEV;
}