]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] em28xx: fix sparse warnings
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 21 Aug 2014 19:43:03 +0000 (16:43 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 13:34:58 +0000 (10:34 -0300)
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: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/em28xx/em28xx-core.c

index a7e24848f6c8d04e3431d27f20107732bbd12686..230d6a21b6d30d4b576f8f8c89b0e2d5da52803e 100644 (file)
@@ -2246,7 +2246,7 @@ struct em28xx_board 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 */
 struct usb_device_id em28xx_id_table[] = {
index 523d7e92bf47b7974515a1d9acd2fc19ab131b51..225a73518cf2e3fb374fd6ecabc1c3c4eecaedc3 100644 (file)
@@ -279,7 +279,7 @@ int em28xx_read_ac97(struct em28xx *dev, u8 reg)
 {
        int ret;
        u8 addr = (reg & 0x7f) | 0x80;
-       u16 val;
+       __le16 val;
 
        ret = em28xx_is_ac97_ready(dev);
        if (ret < 0)