aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/etoms.c
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-07-25 07:53:03 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-27 10:06:38 -0400
commit9d64fdb15b1b9ce9144cfde4001e9194ccde42d1 (patch)
treeda578050af9867c0247b55099b4e7337f8fea2b4 /drivers/media/video/gspca/etoms.c
parent07767ebda385956bd2b193f9820de719475bfe6e (diff)
V4L/DVB (8513): gspca: Set the specific per webcam information in driver_info.
This patch removes a big part of the code run at probe time. Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/gspca/etoms.c')
-rw-r--r--drivers/media/video/gspca/etoms.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c
index 7529bb0bf6fc..c8c2f02fcf00 100644
--- a/drivers/media/video/gspca/etoms.c
+++ b/drivers/media/video/gspca/etoms.c
@@ -599,25 +599,10 @@ static int sd_config(struct gspca_dev *gspca_dev,
599{ 599{
600 struct sd *sd = (struct sd *) gspca_dev; 600 struct sd *sd = (struct sd *) gspca_dev;
601 struct cam *cam; 601 struct cam *cam;
602 __u16 vendor; 602
603 __u16 product;
604
605 vendor = id->idVendor;
606 product = id->idProduct;
607/* switch (vendor) { */
608/* case 0x102c: * Etoms */
609 switch (product) {
610 case 0x6151:
611 sd->sensor = SENSOR_PAS106; /* Etoms61x151 */
612 break;
613 case 0x6251:
614 sd->sensor = SENSOR_TAS5130CXX; /* Etoms61x251 */
615 break;
616/* } */
617/* break; */
618 }
619 cam = &gspca_dev->cam; 603 cam = &gspca_dev->cam;
620 cam->epaddr = 1; 604 cam->epaddr = 1;
605 sd->sensor = id->driver_info;
621 if (sd->sensor == SENSOR_PAS106) { 606 if (sd->sensor == SENSOR_PAS106) {
622 cam->cam_mode = sif_mode; 607 cam->cam_mode = sif_mode;
623 cam->nmodes = sizeof sif_mode / sizeof sif_mode[0]; 608 cam->nmodes = sizeof sif_mode / sizeof sif_mode[0];
@@ -907,12 +892,11 @@ static struct sd_desc sd_desc = {
907}; 892};
908 893
909/* -- module initialisation -- */ 894/* -- module initialisation -- */
910#define DVNM(name) .driver_info = (kernel_ulong_t) name
911static __devinitdata struct usb_device_id device_table[] = { 895static __devinitdata struct usb_device_id device_table[] = {
912#ifndef CONFIG_USB_ET61X251 896#ifndef CONFIG_USB_ET61X251
913 {USB_DEVICE(0x102c, 0x6151), DVNM("Qcam Sangha CIF")}, 897 {USB_DEVICE(0x102c, 0x6151), .driver_info = SENSOR_PAS106},
914#endif 898#endif
915 {USB_DEVICE(0x102c, 0x6251), DVNM("Qcam xxxxxx VGA")}, 899 {USB_DEVICE(0x102c, 0x6251), .driver_info = SENSOR_TAS5130CXX},
916 {} 900 {}
917}; 901};
918 902