]> Pileus Git - ~andy/linux/commitdiff
[media] gscpa_stv06xx: Make sd_desc const
authorHans de Goede <hdegoede@redhat.com>
Wed, 9 May 2012 14:22:47 +0000 (11:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:38:26 +0000 (09:38 -0300)
Now that stv06xx is using the control framework it is no longer necessary
to have a (non const) copy of sd_desc inside the sd specific data struct.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/stv06xx/stv06xx.c
drivers/media/video/gspca/stv06xx/stv06xx.h

index 3a8d034421fc79a5b6e5b7b17c6037607e0b54e0..cebd615effeb125c8a9a63fbed85bf49685cf131 100644 (file)
@@ -542,9 +542,8 @@ static int stv06xx_config(struct gspca_dev *gspca_dev,
 
        PDEBUG(D_PROBE, "Configuring camera");
 
-       sd->desc = sd_desc;
        sd->bridge = id->driver_info;
-       gspca_dev->sd_desc = &sd->desc;
+       gspca_dev->sd_desc = &sd_desc;
 
        if (dump_bridge)
                stv06xx_dump_bridge(sd);
index b338edcdbe0c696f8e98013b42c8cfdbb066195f..b7cbc6b878d3b293beec2225e44bf31ccb3911ef 100644 (file)
@@ -92,9 +92,6 @@ struct sd {
        /* Control handler */
        struct v4l2_ctrl_handler ctrl_handler;
 
-       /* A pointer to the sd_desc struct */
-       struct sd_desc desc;
-
        /* Sensor private data */
        void *sensor_priv;