V4L/DVB (10618): gspca - some drivers: Fix compilation warnings.
authorJean-Francois Moine <moinejf@free.fr>
Mon, 2 Feb 2009 19:25:38 +0000 (16:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:48 +0000 (12:42 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/mr97310a.c
drivers/media/video/gspca/sonixj.c
drivers/media/video/gspca/spca505.c

index 3a5ddff8f7a6636474b983f745591feb23b6c647..5ec5ce6e3ed9f1e5879aeb914c8198277072803d 100644 (file)
@@ -73,7 +73,7 @@ static int reg_w(struct gspca_dev *gspca_dev, int len)
 
        rc = usb_bulk_msg(gspca_dev->dev,
                          usb_sndbulkpipe(gspca_dev->dev, 4),
-                         gspca_dev->usb_buf, len, 0, 500);
+                         gspca_dev->usb_buf, len, NULL, 500);
        if (rc < 0)
                PDEBUG(D_ERR, "reg write [%02x] error %d",
                       gspca_dev->usb_buf[0], rc);
index 970c74f9fe8b61ac52d0e5d54339b6bc85a54bb4..882d5e9b436aa183667e00fa90c4a3c067c8987f 100644 (file)
@@ -1023,7 +1023,7 @@ static void mi0360_probe(struct gspca_dev *gspca_dev)
 {
        struct sd *sd = (struct sd *) gspca_dev;
        int i, j;
-       u16 val;
+       u16 val = 0;
        static const u8 probe_tb[][4][8] = {
            {                                   /* mi0360 */
                {0xb0, 0x5d, 0x07, 0x00, 0x02, 0x00, 0x00, 0x10},
index 4fc54d8b84aa3e6277fad99447136eb542ac11ed..2acec58b1b9734cb67512100d2323416f15f3dae 100644 (file)
@@ -426,8 +426,8 @@ static const u8 spca505b_open_data_ccd[][3] = {
        {0x05, 0x00, 0x11},
        {0x05, 0x00, 0x12},
        {0x05, 0x6f, 0x00},
-       {0x05, (u8) (initial_brightness >> 6), 0x00},
-       {0x05, (u8) (initial_brightness << 2), 0x01},
+       {0x05, initial_brightness >> 6, 0x00},
+       {0x05, (initial_brightness << 2) & 0xff, 0x01},
        {0x05, 0x00, 0x02},
        {0x05, 0x01, 0x03},
        {0x05, 0x00, 0x04},
@@ -560,8 +560,8 @@ static const u8 spca505b_open_data_ccd[][3] = {
        {0x06, 0x5f, 0x1f},
        {0x06, 0x32, 0x20},
 
-       {0x05, (u8) (initial_brightness >> 6), 0x00},
-       {0x05, (u8) (initial_brightness << 2), 0x01},
+       {0x05, initial_brightness >> 6, 0x00},
+       {0x05, (initial_brightness << 2) & 0xff, 0x01},
        {0x05, 0x06, 0xc1},
        {0x05, 0x58, 0xc2},
        {0x05, 0x00, 0xca},