diff options
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 44 |
1 files changed, 10 insertions, 34 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index fcf2c9e32573..a4221753e1bf 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -24,9 +24,6 @@ | |||
24 | 24 | ||
25 | #include "gspca.h" | 25 | #include "gspca.h" |
26 | 26 | ||
27 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 7) | ||
28 | static const char version[] = "2.1.7"; | ||
29 | |||
30 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); | 27 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); |
31 | MODULE_DESCRIPTION("GSPCA/VC032X USB Camera Driver"); | 28 | MODULE_DESCRIPTION("GSPCA/VC032X USB Camera Driver"); |
32 | MODULE_LICENSE("GPL"); | 29 | MODULE_LICENSE("GPL"); |
@@ -1419,30 +1416,10 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
1419 | struct usb_device *dev = gspca_dev->dev; | 1416 | struct usb_device *dev = gspca_dev->dev; |
1420 | struct cam *cam; | 1417 | struct cam *cam; |
1421 | int sensor; | 1418 | int sensor; |
1422 | __u16 product; | ||
1423 | |||
1424 | product = id->idProduct; | ||
1425 | sd->bridge = BRIDGE_VC0321; | ||
1426 | switch (id->idVendor) { | ||
1427 | case 0x0ac8: /* Vimicro z-star */ | ||
1428 | switch (product) { | ||
1429 | case 0x0323: | ||
1430 | sd->bridge = BRIDGE_VC0323; | ||
1431 | break; | ||
1432 | } | ||
1433 | break; | ||
1434 | case 0x17ef: /* Lenovo */ | ||
1435 | /* switch (product) { */ | ||
1436 | /* case 0x4802: * Lenovo MI1310_SOC */ | ||
1437 | sd->bridge = BRIDGE_VC0323; | ||
1438 | /* break; */ | ||
1439 | /* } */ | ||
1440 | break; | ||
1441 | } | ||
1442 | 1419 | ||
1443 | cam = &gspca_dev->cam; | 1420 | cam = &gspca_dev->cam; |
1444 | cam->dev_name = (char *) id->driver_info; | ||
1445 | cam->epaddr = 0x02; | 1421 | cam->epaddr = 0x02; |
1422 | sd->bridge = id->driver_info; | ||
1446 | if (sd->bridge == BRIDGE_VC0321) { | 1423 | if (sd->bridge == BRIDGE_VC0321) { |
1447 | cam->cam_mode = vc0321_mode; | 1424 | cam->cam_mode = vc0321_mode; |
1448 | cam->nmodes = ARRAY_SIZE(vc0321_mode); | 1425 | cam->nmodes = ARRAY_SIZE(vc0321_mode); |
@@ -1771,16 +1748,15 @@ static const struct sd_desc sd_desc = { | |||
1771 | }; | 1748 | }; |
1772 | 1749 | ||
1773 | /* -- module initialisation -- */ | 1750 | /* -- module initialisation -- */ |
1774 | #define DVNM(name) .driver_info = (kernel_ulong_t) name | ||
1775 | static const __devinitdata struct usb_device_id device_table[] = { | 1751 | static const __devinitdata struct usb_device_id device_table[] = { |
1776 | {USB_DEVICE(0x046d, 0x0892), DVNM("Logitech Orbicam")}, | 1752 | {USB_DEVICE(0x046d, 0x0892), .driver_info = BRIDGE_VC0321}, |
1777 | {USB_DEVICE(0x046d, 0x0896), DVNM("Logitech Orbicam")}, | 1753 | {USB_DEVICE(0x046d, 0x0896), .driver_info = BRIDGE_VC0321}, |
1778 | {USB_DEVICE(0x0ac8, 0x0321), DVNM("Vimicro generic vc0321")}, | 1754 | {USB_DEVICE(0x0ac8, 0x0321), .driver_info = BRIDGE_VC0321}, |
1779 | {USB_DEVICE(0x0ac8, 0x0323), DVNM("Vimicro Vc0323")}, | 1755 | {USB_DEVICE(0x0ac8, 0x0323), .driver_info = BRIDGE_VC0323}, |
1780 | {USB_DEVICE(0x0ac8, 0x0328), DVNM("A4Tech PK-130MG")}, | 1756 | {USB_DEVICE(0x0ac8, 0x0328), .driver_info = BRIDGE_VC0321}, |
1781 | {USB_DEVICE(0x0ac8, 0xc001), DVNM("Sony embedded vimicro")}, | 1757 | {USB_DEVICE(0x0ac8, 0xc001), .driver_info = BRIDGE_VC0321}, |
1782 | {USB_DEVICE(0x0ac8, 0xc002), DVNM("Sony embedded vimicro")}, | 1758 | {USB_DEVICE(0x0ac8, 0xc002), .driver_info = BRIDGE_VC0321}, |
1783 | {USB_DEVICE(0x17ef, 0x4802), DVNM("Lenovo Vc0323+MI1310_SOC")}, | 1759 | {USB_DEVICE(0x17ef, 0x4802), .driver_info = BRIDGE_VC0323}, |
1784 | {} | 1760 | {} |
1785 | }; | 1761 | }; |
1786 | MODULE_DEVICE_TABLE(usb, device_table); | 1762 | MODULE_DEVICE_TABLE(usb, device_table); |
@@ -1805,7 +1781,7 @@ static int __init sd_mod_init(void) | |||
1805 | { | 1781 | { |
1806 | if (usb_register(&sd_driver) < 0) | 1782 | if (usb_register(&sd_driver) < 0) |
1807 | return -1; | 1783 | return -1; |
1808 | PDEBUG(D_PROBE, "v%s registered", version); | 1784 | PDEBUG(D_PROBE, "registered"); |
1809 | return 0; | 1785 | return 0; |
1810 | } | 1786 | } |
1811 | static void __exit sd_mod_exit(void) | 1787 | static void __exit sd_mod_exit(void) |