aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-08-20 15:45:27 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 08:31:31 -0400
commit1ad5d0645ec8c2b4b1ca9d146530bf9b755d8920 (patch)
tree5fd6fed4abc2bbffa58f8ad762b9c37fdb14472b /drivers/media/usb/dvb-usb
parent7754622baa7220d7048a5b97435adff1dfb15dbb (diff)
[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: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb')
-rw-r--r--drivers/media/usb/dvb-usb/dw2102.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c
index 2add8c507ec9..1a3df10d6bad 100644
--- a/drivers/media/usb/dvb-usb/dw2102.c
+++ b/drivers/media/usb/dvb-usb/dw2102.c
@@ -667,7 +667,7 @@ static int s6x0_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[],
667 obuf[1] = (msg[j].addr << 1); 667 obuf[1] = (msg[j].addr << 1);
668 memcpy(obuf + 2, msg[j].buf, msg[j].len); 668 memcpy(obuf + 2, msg[j].buf, msg[j].len);
669 dw210x_op_rw(d->udev, 669 dw210x_op_rw(d->udev,
670 udev->descriptor.idProduct == 670 le16_to_cpu(udev->descriptor.idProduct) ==
671 0x7500 ? 0x92 : 0x90, 0, 0, 671 0x7500 ? 0x92 : 0x90, 0, 0,
672 obuf, msg[j].len + 2, 672 obuf, msg[j].len + 2,
673 DW210X_WRITE_MSG); 673 DW210X_WRITE_MSG);
@@ -1598,7 +1598,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
1598 u8 reset16[] = {0, 0, 0, 0, 0, 0, 0}; 1598 u8 reset16[] = {0, 0, 0, 0, 0, 0, 0};
1599 const struct firmware *fw; 1599 const struct firmware *fw;
1600 1600
1601 switch (dev->descriptor.idProduct) { 1601 switch (le16_to_cpu(dev->descriptor.idProduct)) {
1602 case 0x2101: 1602 case 0x2101:
1603 ret = request_firmware(&fw, DW2101_FIRMWARE, &dev->dev); 1603 ret = request_firmware(&fw, DW2101_FIRMWARE, &dev->dev);
1604 if (ret != 0) { 1604 if (ret != 0) {
@@ -1641,7 +1641,7 @@ static int dw2102_load_firmware(struct usb_device *dev,
1641 ret = -EINVAL; 1641 ret = -EINVAL;
1642 } 1642 }
1643 /* init registers */ 1643 /* init registers */
1644 switch (dev->descriptor.idProduct) { 1644 switch (le16_to_cpu(dev->descriptor.idProduct)) {
1645 case USB_PID_TEVII_S650: 1645 case USB_PID_TEVII_S650:
1646 dw2104_properties.rc.core.rc_codes = RC_MAP_TEVII_NEC; 1646 dw2104_properties.rc.core.rc_codes = RC_MAP_TEVII_NEC;
1647 case USB_PID_DW2104: 1647 case USB_PID_DW2104:
@@ -1901,14 +1901,14 @@ static struct dvb_usb_device_properties s6x0_properties = {
1901 } 1901 }
1902}; 1902};
1903 1903
1904struct dvb_usb_device_properties *p1100; 1904static struct dvb_usb_device_properties *p1100;
1905static struct dvb_usb_device_description d1100 = { 1905static struct dvb_usb_device_description d1100 = {
1906 "Prof 1100 USB ", 1906 "Prof 1100 USB ",
1907 {&dw2102_table[PROF_1100], NULL}, 1907 {&dw2102_table[PROF_1100], NULL},
1908 {NULL}, 1908 {NULL},
1909}; 1909};
1910 1910
1911struct dvb_usb_device_properties *s660; 1911static struct dvb_usb_device_properties *s660;
1912static struct dvb_usb_device_description d660 = { 1912static struct dvb_usb_device_description d660 = {
1913 "TeVii S660 USB", 1913 "TeVii S660 USB",
1914 {&dw2102_table[TEVII_S660], NULL}, 1914 {&dw2102_table[TEVII_S660], NULL},
@@ -1927,14 +1927,14 @@ static struct dvb_usb_device_description d480_2 = {
1927 {NULL}, 1927 {NULL},
1928}; 1928};
1929 1929
1930struct dvb_usb_device_properties *p7500; 1930static struct dvb_usb_device_properties *p7500;
1931static struct dvb_usb_device_description d7500 = { 1931static struct dvb_usb_device_description d7500 = {
1932 "Prof 7500 USB DVB-S2", 1932 "Prof 7500 USB DVB-S2",
1933 {&dw2102_table[PROF_7500], NULL}, 1933 {&dw2102_table[PROF_7500], NULL},
1934 {NULL}, 1934 {NULL},
1935}; 1935};
1936 1936
1937struct dvb_usb_device_properties *s421; 1937static struct dvb_usb_device_properties *s421;
1938static struct dvb_usb_device_description d421 = { 1938static struct dvb_usb_device_description d421 = {
1939 "TeVii S421 PCI", 1939 "TeVii S421 PCI",
1940 {&dw2102_table[TEVII_S421], NULL}, 1940 {&dw2102_table[TEVII_S421], NULL},