mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
[media] gscpa_stv06xx: Make sd_desc const
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>
This commit is contained in:
parent
dec9c51442
commit
d67a1adaea
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user