]> err.no Git - linux-2.6/commitdiff
V4L/DVB (8512): gspca: Do not use the driver_info field of usb_device_id.
authorJean-Francois Moine <moinejf@free.fr>
Wed, 23 Jul 2008 06:39:42 +0000 (03:39 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 27 Jul 2008 14:06:33 +0000 (11:06 -0300)
The field driver_info will be used to handle the specific per webcam
information.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
17 files changed:
drivers/media/video/gspca/conex.c
drivers/media/video/gspca/etoms.c
drivers/media/video/gspca/mars.c
drivers/media/video/gspca/ov519.c
drivers/media/video/gspca/pac7311.c
drivers/media/video/gspca/sonixj.c
drivers/media/video/gspca/spca500.c
drivers/media/video/gspca/spca501.c
drivers/media/video/gspca/spca505.c
drivers/media/video/gspca/spca506.c
drivers/media/video/gspca/spca508.c
drivers/media/video/gspca/stk014.c
drivers/media/video/gspca/sunplus.c
drivers/media/video/gspca/t613.c
drivers/media/video/gspca/tv8532.c
drivers/media/video/gspca/vc032x.c
drivers/media/video/gspca/zc3xx.c

index 18c1dec2f769fcf673ffe8e04d4435509fb55b80..f5ef7599d3cad360e45933e45b0dee97f2581030 100644 (file)
@@ -815,7 +815,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        struct cam *cam;
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = vga_mode;
        cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
index 6f2f1d24b7eb9b36e07b88ab7852d2c818a62468..7529bb0bf6fc1d4f7f1a591209dc04715dd9221f 100644 (file)
@@ -617,7 +617,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
 /*             break; */
        }
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 1;
        if (sd->sensor == SENSOR_PAS106) {
                cam->cam_mode = sif_mode;
index a4706162f4154ed5025bf611cf8fe1abaf6a3ea4..2d47876bfec94d25ae2d1b7185f047ef07b1e80d 100644 (file)
@@ -137,7 +137,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        struct cam *cam;
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = vga_mode;
        cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
index f15bec7080c93d98d58fbe4bba23cf1bae6f7522..9109cbbb6fc179765c8c0bcfdd65baf0742ae10e 100644 (file)
@@ -1372,7 +1372,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
                cam->cam_mode = sif_mode;
                cam->nmodes = sizeof sif_mode / sizeof sif_mode[0];
        }
-       cam->dev_name = (char *) id->driver_info;
        sd->brightness = sd_ctrls[SD_BRIGHTNESS].qctrl.default_value;
        sd->contrast = sd_ctrls[SD_CONTRAST].qctrl.default_value;
        sd->colors = sd_ctrls[SD_COLOR].qctrl.default_value;
index 2267ae7cb87f53d122a2fedb97b6a407b35be15e..ad802a72cf04490ede0a349e2b6e9b31a948ac16 100644 (file)
@@ -263,7 +263,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        reg_w(gspca_dev, 0x3e, 0x20);
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x05;
        cam->cam_mode = vga_mode;
        cam->nmodes = ARRAY_SIZE(vga_mode);
index 35b1a3ee4c3f806634e4484f3562144b7495a0ed..3f8418c7e5fd3235d9fd030ef72b361716ab225b 100644 (file)
@@ -976,7 +976,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        }
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = vga_mode;
        cam->nmodes = ARRAY_SIZE(vga_mode);
index 8c83823745f05e7f0496c0260e311cbe44866fd0..2b8ae8095b0ea591da8458cca4e9860549c04a03 100644 (file)
@@ -728,7 +728,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
                break;
        }
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        if (sd->subtype != LogitechClickSmart310) {
                cam->cam_mode = vga_mode;
index 6537acee89dd09534315edfdd2aecc63006b6d6e..a695c42e10cf385f7b4a19a4f8d2e539160e0416 100644 (file)
@@ -1973,7 +1973,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
                break;
        }
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = vga_mode;
        cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
index 1bb23d03f048332f906a6f1be8a3f331a0f79fe6..adff24f503bbfb25b3f1c94328646012aca01640 100644 (file)
@@ -662,7 +662,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        }
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = vga_mode;
        if (sd->subtype != IntelPCCameraPro)
index 40e8541b2b898ca04746b1a6f294f0f0b5e35eea..36dc13c11cbb8a4c1223d45408eeb91ff20ed5a8 100644 (file)
@@ -307,7 +307,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        struct cam *cam;
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = vga_mode;
        cam->nmodes = sizeof vga_mode / sizeof vga_mode[0];
index 362f645d08c6c16ee11a57d34ba95d6a538a06cb..eff5eda70e68cc822bfac953b85eef1444064240 100644 (file)
@@ -1541,7 +1541,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        PDEBUG(D_PROBE, "Window 1 average luminance: %d", data1);
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
        cam->cam_mode = sif_mode;
        cam->nmodes = ARRAY_SIZE(sif_mode);
index 90efde17b08b1a78e786a83c8856eb6720640ee2..f6390b49f6939be79d5ddc21767141af2f5c2430 100644 (file)
@@ -296,7 +296,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        struct sd *sd = (struct sd *) gspca_dev;
        struct cam *cam = &gspca_dev->cam;
 
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x02;
        gspca_dev->cam.cam_mode = vga_mode;
        gspca_dev->cam.nmodes = ARRAY_SIZE(vga_mode);
index 53e20275f26db728c77ccb964ba88e7f66c72cff..030cb18b3557a4b689dfd696a63e93af7e90a092 100644 (file)
@@ -1021,7 +1021,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        }
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
 
        switch (sd->bridge) {
index fc1c62e5a2fdde720f66317f53560e0f395143b0..f7ea9a7427253948e06eb6b7f3bf598dbe870d38 100644 (file)
@@ -422,7 +422,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        struct cam *cam;
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
 
        cam->cam_mode = vga_mode_t16;
index cb2d9da2a224d3c7d3ced19c01ad7981a8a86e2c..b024aca9b102a304de8f8fb2e88ec63cb3055398 100644 (file)
@@ -246,7 +246,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        tv_8532WriteEEprom(gspca_dev);
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 1;
        cam->cam_mode = sif_mode;
        cam->nmodes = sizeof sif_mode / sizeof sif_mode[0];
index e306ac420298a015c96f593bb228090184cbfa82..46cff48e62975d802cc3ad677d3eda3acbc7e01c 100644 (file)
@@ -1438,7 +1438,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        }
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x02;
        if (sd->bridge == BRIDGE_VC0321) {
                cam->cam_mode = vc0321_mode;
index f8d6f1780a45a14a9dbcd8e7b2c30d4e8e6bae51..acd538da078486b910d7bf64959445720434a241 100644 (file)
@@ -7153,7 +7153,6 @@ static int sd_config(struct gspca_dev *gspca_dev,
        }
 
        cam = &gspca_dev->cam;
-       cam->dev_name = (char *) id->driver_info;
        cam->epaddr = 0x01;
 /*fixme:test*/
        gspca_dev->nbalt--;