diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-02-02 14:25:38 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:48 -0400 |
commit | 92e8c91bd2a0db4b129baf332344f564bdfca941 (patch) | |
tree | 46c50860b20fe6dd8c5392d20a28fcbcbbc8cd49 | |
parent | 5899c75f0252552f3683e9bba2f2680ea69f76b3 (diff) |
V4L/DVB (10618): gspca - some drivers: Fix compilation warnings.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/gspca/mr97310a.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/sonixj.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca505.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 3a5ddff8f7a6..5ec5ce6e3ed9 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c | |||
@@ -73,7 +73,7 @@ static int reg_w(struct gspca_dev *gspca_dev, int len) | |||
73 | 73 | ||
74 | rc = usb_bulk_msg(gspca_dev->dev, | 74 | rc = usb_bulk_msg(gspca_dev->dev, |
75 | usb_sndbulkpipe(gspca_dev->dev, 4), | 75 | usb_sndbulkpipe(gspca_dev->dev, 4), |
76 | gspca_dev->usb_buf, len, 0, 500); | 76 | gspca_dev->usb_buf, len, NULL, 500); |
77 | if (rc < 0) | 77 | if (rc < 0) |
78 | PDEBUG(D_ERR, "reg write [%02x] error %d", | 78 | PDEBUG(D_ERR, "reg write [%02x] error %d", |
79 | gspca_dev->usb_buf[0], rc); | 79 | gspca_dev->usb_buf[0], rc); |
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 970c74f9fe8b..882d5e9b436a 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -1023,7 +1023,7 @@ static void mi0360_probe(struct gspca_dev *gspca_dev) | |||
1023 | { | 1023 | { |
1024 | struct sd *sd = (struct sd *) gspca_dev; | 1024 | struct sd *sd = (struct sd *) gspca_dev; |
1025 | int i, j; | 1025 | int i, j; |
1026 | u16 val; | 1026 | u16 val = 0; |
1027 | static const u8 probe_tb[][4][8] = { | 1027 | static const u8 probe_tb[][4][8] = { |
1028 | { /* mi0360 */ | 1028 | { /* mi0360 */ |
1029 | {0xb0, 0x5d, 0x07, 0x00, 0x02, 0x00, 0x00, 0x10}, | 1029 | {0xb0, 0x5d, 0x07, 0x00, 0x02, 0x00, 0x00, 0x10}, |
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c index 4fc54d8b84aa..2acec58b1b97 100644 --- a/drivers/media/video/gspca/spca505.c +++ b/drivers/media/video/gspca/spca505.c | |||
@@ -426,8 +426,8 @@ static const u8 spca505b_open_data_ccd[][3] = { | |||
426 | {0x05, 0x00, 0x11}, | 426 | {0x05, 0x00, 0x11}, |
427 | {0x05, 0x00, 0x12}, | 427 | {0x05, 0x00, 0x12}, |
428 | {0x05, 0x6f, 0x00}, | 428 | {0x05, 0x6f, 0x00}, |
429 | {0x05, (u8) (initial_brightness >> 6), 0x00}, | 429 | {0x05, initial_brightness >> 6, 0x00}, |
430 | {0x05, (u8) (initial_brightness << 2), 0x01}, | 430 | {0x05, (initial_brightness << 2) & 0xff, 0x01}, |
431 | {0x05, 0x00, 0x02}, | 431 | {0x05, 0x00, 0x02}, |
432 | {0x05, 0x01, 0x03}, | 432 | {0x05, 0x01, 0x03}, |
433 | {0x05, 0x00, 0x04}, | 433 | {0x05, 0x00, 0x04}, |
@@ -560,8 +560,8 @@ static const u8 spca505b_open_data_ccd[][3] = { | |||
560 | {0x06, 0x5f, 0x1f}, | 560 | {0x06, 0x5f, 0x1f}, |
561 | {0x06, 0x32, 0x20}, | 561 | {0x06, 0x32, 0x20}, |
562 | 562 | ||
563 | {0x05, (u8) (initial_brightness >> 6), 0x00}, | 563 | {0x05, initial_brightness >> 6, 0x00}, |
564 | {0x05, (u8) (initial_brightness << 2), 0x01}, | 564 | {0x05, (initial_brightness << 2) & 0xff, 0x01}, |
565 | {0x05, 0x06, 0xc1}, | 565 | {0x05, 0x06, 0xc1}, |
566 | {0x05, 0x58, 0xc2}, | 566 | {0x05, 0x58, 0xc2}, |
567 | {0x05, 0x00, 0xca}, | 567 | {0x05, 0x00, 0xca}, |