diff options
Diffstat (limited to 'drivers/media/video/gspca/etoms.c')
-rw-r--r-- | drivers/media/video/gspca/etoms.c | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index 8ab4ea7201a9..c8c2f02fcf00 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -22,9 +22,6 @@ | |||
22 | 22 | ||
23 | #include "gspca.h" | 23 | #include "gspca.h" |
24 | 24 | ||
25 | #define DRIVER_VERSION_NUMBER KERNEL_VERSION(2, 1, 7) | ||
26 | static const char version[] = "2.1.7"; | ||
27 | |||
28 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); | 25 | MODULE_AUTHOR("Michel Xhaard <mxhaard@users.sourceforge.net>"); |
29 | MODULE_DESCRIPTION("Etoms USB Camera Driver"); | 26 | MODULE_DESCRIPTION("Etoms USB Camera Driver"); |
30 | MODULE_LICENSE("GPL"); | 27 | MODULE_LICENSE("GPL"); |
@@ -602,26 +599,10 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
602 | { | 599 | { |
603 | struct sd *sd = (struct sd *) gspca_dev; | 600 | struct sd *sd = (struct sd *) gspca_dev; |
604 | struct cam *cam; | 601 | struct cam *cam; |
605 | __u16 vendor; | 602 | |
606 | __u16 product; | ||
607 | |||
608 | vendor = id->idVendor; | ||
609 | product = id->idProduct; | ||
610 | /* switch (vendor) { */ | ||
611 | /* case 0x102c: * Etoms */ | ||
612 | switch (product) { | ||
613 | case 0x6151: | ||
614 | sd->sensor = SENSOR_PAS106; /* Etoms61x151 */ | ||
615 | break; | ||
616 | case 0x6251: | ||
617 | sd->sensor = SENSOR_TAS5130CXX; /* Etoms61x251 */ | ||
618 | break; | ||
619 | /* } */ | ||
620 | /* break; */ | ||
621 | } | ||
622 | cam = &gspca_dev->cam; | 603 | cam = &gspca_dev->cam; |
623 | cam->dev_name = (char *) id->driver_info; | ||
624 | cam->epaddr = 1; | 604 | cam->epaddr = 1; |
605 | sd->sensor = id->driver_info; | ||
625 | if (sd->sensor == SENSOR_PAS106) { | 606 | if (sd->sensor == SENSOR_PAS106) { |
626 | cam->cam_mode = sif_mode; | 607 | cam->cam_mode = sif_mode; |
627 | cam->nmodes = sizeof sif_mode / sizeof sif_mode[0]; | 608 | cam->nmodes = sizeof sif_mode / sizeof sif_mode[0]; |
@@ -911,12 +892,11 @@ static struct sd_desc sd_desc = { | |||
911 | }; | 892 | }; |
912 | 893 | ||
913 | /* -- module initialisation -- */ | 894 | /* -- module initialisation -- */ |
914 | #define DVNM(name) .driver_info = (kernel_ulong_t) name | ||
915 | static __devinitdata struct usb_device_id device_table[] = { | 895 | static __devinitdata struct usb_device_id device_table[] = { |
916 | #ifndef CONFIG_USB_ET61X251 | 896 | #ifndef CONFIG_USB_ET61X251 |
917 | {USB_DEVICE(0x102c, 0x6151), DVNM("Qcam Sangha CIF")}, | 897 | {USB_DEVICE(0x102c, 0x6151), .driver_info = SENSOR_PAS106}, |
918 | #endif | 898 | #endif |
919 | {USB_DEVICE(0x102c, 0x6251), DVNM("Qcam xxxxxx VGA")}, | 899 | {USB_DEVICE(0x102c, 0x6251), .driver_info = SENSOR_TAS5130CXX}, |
920 | {} | 900 | {} |
921 | }; | 901 | }; |
922 | 902 | ||
@@ -942,7 +922,7 @@ static int __init sd_mod_init(void) | |||
942 | { | 922 | { |
943 | if (usb_register(&sd_driver) < 0) | 923 | if (usb_register(&sd_driver) < 0) |
944 | return -1; | 924 | return -1; |
945 | PDEBUG(D_PROBE, "v%s registered", version); | 925 | PDEBUG(D_PROBE, "registered"); |
946 | return 0; | 926 | return 0; |
947 | } | 927 | } |
948 | 928 | ||