Commit 4a9e512a authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] em28xx: fix sparse warnings

drivers/media/usb/em28xx/em28xx-core.c:297:16: warning: cast to restricted __le16
drivers/media/usb/em28xx/em28xx-cards.c:2249:20: warning: symbol 'em28xx_bcount' was not declared. Should it be static?
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 39fd4460
...@@ -2246,7 +2246,7 @@ struct em28xx_board em28xx_boards[] = { ...@@ -2246,7 +2246,7 @@ struct em28xx_board em28xx_boards[] = {
}; };
EXPORT_SYMBOL_GPL(em28xx_boards); EXPORT_SYMBOL_GPL(em28xx_boards);
const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards); static const unsigned int em28xx_bcount = ARRAY_SIZE(em28xx_boards);
/* table of devices that work with this driver */ /* table of devices that work with this driver */
struct usb_device_id em28xx_id_table[] = { struct usb_device_id em28xx_id_table[] = {
......
...@@ -279,7 +279,7 @@ int em28xx_read_ac97(struct em28xx *dev, u8 reg) ...@@ -279,7 +279,7 @@ int em28xx_read_ac97(struct em28xx *dev, u8 reg)
{ {
int ret; int ret;
u8 addr = (reg & 0x7f) | 0x80; u8 addr = (reg & 0x7f) | 0x80;
u16 val; __le16 val;
ret = em28xx_is_ac97_ready(dev); ret = em28xx_is_ac97_ready(dev);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment