提交 1ad5d064 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] dw2102: fix sparse warnings

drivers/media/usb/dvb-usb/dw2102.c:670:65: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1601:32: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1644:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1644:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1644:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1644:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1644:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1644:40: warning: restricted __le16 degrades to integer
drivers/media/usb/dvb-usb/dw2102.c:1904:34: warning: symbol 'p1100' was not declared. Should it be static?
drivers/media/usb/dvb-usb/dw2102.c:1911:34: warning: symbol 's660' was not declared. Should it be static?
drivers/media/usb/dvb-usb/dw2102.c:1930:34: warning: symbol 'p7500' was not declared. Should it be static?
drivers/media/usb/dvb-usb/dw2102.c:1937:34: warning: symbol 's421' was not declared. Should it be static?
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 7754622b
...@@ -667,7 +667,7 @@ static int s6x0_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], ...@@ -667,7 +667,7 @@ static int s6x0_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[],
obuf[1] = (msg[j].addr << 1); obuf[1] = (msg[j].addr << 1);
memcpy(obuf + 2, msg[j].buf, msg[j].len); memcpy(obuf + 2, msg[j].buf, msg[j].len);
dw210x_op_rw(d->udev, dw210x_op_rw(d->udev,
udev->descriptor.idProduct == le16_to_cpu(udev->descriptor.idProduct) ==
0x7500 ? 0x92 : 0x90, 0, 0, 0x7500 ? 0x92 : 0x90, 0, 0,
obuf, msg[j].len + 2, obuf, msg[j].len + 2,
DW210X_WRITE_MSG); DW210X_WRITE_MSG);
...@@ -1598,7 +1598,7 @@ static int dw2102_load_firmware(struct usb_device *dev, ...@@ -1598,7 +1598,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
u8 reset16[] = {0, 0, 0, 0, 0, 0, 0}; u8 reset16[] = {0, 0, 0, 0, 0, 0, 0};
const struct firmware *fw; const struct firmware *fw;
switch (dev->descriptor.idProduct) { switch (le16_to_cpu(dev->descriptor.idProduct)) {
case 0x2101: case 0x2101:
ret = request_firmware(&fw, DW2101_FIRMWARE, &dev->dev); ret = request_firmware(&fw, DW2101_FIRMWARE, &dev->dev);
if (ret != 0) { if (ret != 0) {
...@@ -1641,7 +1641,7 @@ static int dw2102_load_firmware(struct usb_device *dev, ...@@ -1641,7 +1641,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
ret = -EINVAL; ret = -EINVAL;
} }
/* init registers */ /* init registers */
switch (dev->descriptor.idProduct) { switch (le16_to_cpu(dev->descriptor.idProduct)) {
case USB_PID_TEVII_S650: case USB_PID_TEVII_S650:
dw2104_properties.rc.core.rc_codes = RC_MAP_TEVII_NEC; dw2104_properties.rc.core.rc_codes = RC_MAP_TEVII_NEC;
case USB_PID_DW2104: case USB_PID_DW2104:
...@@ -1901,14 +1901,14 @@ static struct dvb_usb_device_properties s6x0_properties = { ...@@ -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 = { static struct dvb_usb_device_description d1100 = {
"Prof 1100 USB ", "Prof 1100 USB ",
{&dw2102_table[PROF_1100], NULL}, {&dw2102_table[PROF_1100], NULL},
{NULL}, {NULL},
}; };
struct dvb_usb_device_properties *s660; static struct dvb_usb_device_properties *s660;
static struct dvb_usb_device_description d660 = { static struct dvb_usb_device_description d660 = {
"TeVii S660 USB", "TeVii S660 USB",
{&dw2102_table[TEVII_S660], NULL}, {&dw2102_table[TEVII_S660], NULL},
...@@ -1927,14 +1927,14 @@ static struct dvb_usb_device_description d480_2 = { ...@@ -1927,14 +1927,14 @@ static struct dvb_usb_device_description d480_2 = {
{NULL}, {NULL},
}; };
struct dvb_usb_device_properties *p7500; static struct dvb_usb_device_properties *p7500;
static struct dvb_usb_device_description d7500 = { static struct dvb_usb_device_description d7500 = {
"Prof 7500 USB DVB-S2", "Prof 7500 USB DVB-S2",
{&dw2102_table[PROF_7500], NULL}, {&dw2102_table[PROF_7500], NULL},
{NULL}, {NULL},
}; };
struct dvb_usb_device_properties *s421; static struct dvb_usb_device_properties *s421;
static struct dvb_usb_device_description d421 = { static struct dvb_usb_device_description d421 = {
"TeVii S421 PCI", "TeVii S421 PCI",
{&dw2102_table[TEVII_S421], NULL}, {&dw2102_table[TEVII_S421], NULL},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册