Skip to content

Commit

Permalink
[media] gscpa_stv06xx: Make sd_desc const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Mauro Carvalho Chehab committed May 14, 2012
1 parent dec9c51 commit d67a1ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions drivers/media/video/gspca/stv06xx/stv06xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions drivers/media/video/gspca/stv06xx/stv06xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d67a1ad

Please sign in to comment.