|
@@ -667,7 +667,7 @@ static int s6x0_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[],
|
|
|
obuf[1] = (msg[j].addr << 1);
|
|
|
memcpy(obuf + 2, msg[j].buf, msg[j].len);
|
|
|
dw210x_op_rw(d->udev,
|
|
|
- udev->descriptor.idProduct ==
|
|
|
+ le16_to_cpu(udev->descriptor.idProduct) ==
|
|
|
0x7500 ? 0x92 : 0x90, 0, 0,
|
|
|
obuf, msg[j].len + 2,
|
|
|
DW210X_WRITE_MSG);
|
|
@@ -1598,7 +1598,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
|
|
|
u8 reset16[] = {0, 0, 0, 0, 0, 0, 0};
|
|
|
const struct firmware *fw;
|
|
|
|
|
|
- switch (dev->descriptor.idProduct) {
|
|
|
+ switch (le16_to_cpu(dev->descriptor.idProduct)) {
|
|
|
case 0x2101:
|
|
|
ret = request_firmware(&fw, DW2101_FIRMWARE, &dev->dev);
|
|
|
if (ret != 0) {
|
|
@@ -1641,7 +1641,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
|
|
|
ret = -EINVAL;
|
|
|
}
|
|
|
/* init registers */
|
|
|
- switch (dev->descriptor.idProduct) {
|
|
|
+ switch (le16_to_cpu(dev->descriptor.idProduct)) {
|
|
|
case USB_PID_TEVII_S650:
|
|
|
dw2104_properties.rc.core.rc_codes = RC_MAP_TEVII_NEC;
|
|
|
case USB_PID_DW2104:
|
|
@@ -1901,14 +1901,14 @@ static struct dvb_usb_device_properties s6x0_properties = {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-struct dvb_usb_device_properties *p1100;
|
|
|
+static struct dvb_usb_device_properties *p1100;
|
|
|
static struct dvb_usb_device_description d1100 = {
|
|
|
"Prof 1100 USB ",
|
|
|
{&dw2102_table[PROF_1100], NULL},
|
|
|
{NULL},
|
|
|
};
|
|
|
|
|
|
-struct dvb_usb_device_properties *s660;
|
|
|
+static struct dvb_usb_device_properties *s660;
|
|
|
static struct dvb_usb_device_description d660 = {
|
|
|
"TeVii S660 USB",
|
|
|
{&dw2102_table[TEVII_S660], NULL},
|
|
@@ -1927,14 +1927,14 @@ static struct dvb_usb_device_description d480_2 = {
|
|
|
{NULL},
|
|
|
};
|
|
|
|
|
|
-struct dvb_usb_device_properties *p7500;
|
|
|
+static struct dvb_usb_device_properties *p7500;
|
|
|
static struct dvb_usb_device_description d7500 = {
|
|
|
"Prof 7500 USB DVB-S2",
|
|
|
{&dw2102_table[PROF_7500], NULL},
|
|
|
{NULL},
|
|
|
};
|
|
|
|
|
|
-struct dvb_usb_device_properties *s421;
|
|
|
+static struct dvb_usb_device_properties *s421;
|
|
|
static struct dvb_usb_device_description d421 = {
|
|
|
"TeVii S421 PCI",
|
|
|
{&dw2102_table[TEVII_S421], NULL},
|