diff options
Diffstat (limited to 'drivers/media/video/gspca/sonixb.c')
-rw-r--r-- | drivers/media/video/gspca/sonixb.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index 204bb3af4559..706f96f92654 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -323,10 +323,9 @@ static const __u8 initOv6650[] = { | |||
323 | 0x00, 0x01, 0x01, 0x0a, 0x16, 0x12, 0x68, 0x8b, | 323 | 0x00, 0x01, 0x01, 0x0a, 0x16, 0x12, 0x68, 0x8b, |
324 | 0x10, 0x1d, 0x10, 0x02, 0x02, 0x09, 0x07 | 324 | 0x10, 0x1d, 0x10, 0x02, 0x02, 0x09, 0x07 |
325 | }; | 325 | }; |
326 | static const __u8 ov6650_sensor_init[][8] = | 326 | static const __u8 ov6650_sensor_init[][8] = { |
327 | { | ||
328 | /* Bright, contrast, etc are set through SCBB interface. | 327 | /* Bright, contrast, etc are set through SCBB interface. |
329 | * AVCAP on win2 do not send any data on this controls. */ | 328 | * AVCAP on win2 do not send any data on this controls. */ |
330 | /* Anyway, some registers appears to alter bright and constrat */ | 329 | /* Anyway, some registers appears to alter bright and constrat */ |
331 | 330 | ||
332 | /* Reset sensor */ | 331 | /* Reset sensor */ |
@@ -544,7 +543,7 @@ static const __u8 initTas5130[] = { | |||
544 | 0x18, 0x10, 0x04, 0x03, 0x11, 0x0c | 543 | 0x18, 0x10, 0x04, 0x03, 0x11, 0x0c |
545 | }; | 544 | }; |
546 | static const __u8 tas5130_sensor_init[][8] = { | 545 | static const __u8 tas5130_sensor_init[][8] = { |
547 | /* {0x30, 0x11, 0x00, 0x40, 0x47, 0x00, 0x00, 0x10}, | 546 | /* {0x30, 0x11, 0x00, 0x40, 0x47, 0x00, 0x00, 0x10}, |
548 | * shutter 0x47 short exposure? */ | 547 | * shutter 0x47 short exposure? */ |
549 | {0x30, 0x11, 0x00, 0x40, 0x01, 0x00, 0x00, 0x10}, | 548 | {0x30, 0x11, 0x00, 0x40, 0x01, 0x00, 0x00, 0x10}, |
550 | /* shutter 0x01 long exposure */ | 549 | /* shutter 0x01 long exposure */ |
@@ -861,7 +860,7 @@ static void setexposure(struct gspca_dev *gspca_dev) | |||
861 | i2c[4] |= reg11 - 1; | 860 | i2c[4] |= reg11 - 1; |
862 | 861 | ||
863 | /* If register 11 didn't change, don't change it */ | 862 | /* If register 11 didn't change, don't change it */ |
864 | if (sd->reg11 == reg11 ) | 863 | if (sd->reg11 == reg11) |
865 | i2c[0] = 0xa0; | 864 | i2c[0] = 0xa0; |
866 | 865 | ||
867 | if (i2c_w(gspca_dev, i2c) == 0) | 866 | if (i2c_w(gspca_dev, i2c) == 0) |
@@ -1388,7 +1387,7 @@ static int sd_querymenu(struct gspca_dev *gspca_dev, | |||
1388 | return -EINVAL; | 1387 | return -EINVAL; |
1389 | } | 1388 | } |
1390 | 1389 | ||
1391 | #ifdef CONFIG_INPUT | 1390 | #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) |
1392 | static int sd_int_pkt_scan(struct gspca_dev *gspca_dev, | 1391 | static int sd_int_pkt_scan(struct gspca_dev *gspca_dev, |
1393 | u8 *data, /* interrupt packet data */ | 1392 | u8 *data, /* interrupt packet data */ |
1394 | int len) /* interrupt packet length */ | 1393 | int len) /* interrupt packet length */ |
@@ -1419,7 +1418,7 @@ static const struct sd_desc sd_desc = { | |||
1419 | .pkt_scan = sd_pkt_scan, | 1418 | .pkt_scan = sd_pkt_scan, |
1420 | .querymenu = sd_querymenu, | 1419 | .querymenu = sd_querymenu, |
1421 | .dq_callback = do_autogain, | 1420 | .dq_callback = do_autogain, |
1422 | #ifdef CONFIG_INPUT | 1421 | #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) |
1423 | .int_pkt_scan = sd_int_pkt_scan, | 1422 | .int_pkt_scan = sd_int_pkt_scan, |
1424 | #endif | 1423 | #endif |
1425 | }; | 1424 | }; |
@@ -1479,17 +1478,11 @@ static struct usb_driver sd_driver = { | |||
1479 | /* -- module insert / remove -- */ | 1478 | /* -- module insert / remove -- */ |
1480 | static int __init sd_mod_init(void) | 1479 | static int __init sd_mod_init(void) |
1481 | { | 1480 | { |
1482 | int ret; | 1481 | return usb_register(&sd_driver); |
1483 | ret = usb_register(&sd_driver); | ||
1484 | if (ret < 0) | ||
1485 | return ret; | ||
1486 | PDEBUG(D_PROBE, "registered"); | ||
1487 | return 0; | ||
1488 | } | 1482 | } |
1489 | static void __exit sd_mod_exit(void) | 1483 | static void __exit sd_mod_exit(void) |
1490 | { | 1484 | { |
1491 | usb_deregister(&sd_driver); | 1485 | usb_deregister(&sd_driver); |
1492 | PDEBUG(D_PROBE, "deregistered"); | ||
1493 | } | 1486 | } |
1494 | 1487 | ||
1495 | module_init(sd_mod_init); | 1488 | module_init(sd_mod_init); |