From: Erik Andrén Date: Wed, 27 Jul 2011 20:21:14 +0000 (-0300) Subject: [media] gspca-stv06xx: Remove writes to read-only registers X-Git-Tag: MMI-PSA29.97-13-9~18177^2~345 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6c5441f6204219fce7aefbe3e5ffead3815ef99;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] gspca-stv06xx: Remove writes to read-only registers Signed-off-by: Erik Andrén Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c b/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c index 51b66590c7fa..308add8bc98f 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c @@ -172,15 +172,6 @@ static int vv6410_start(struct sd *sd) struct cam *cam = &sd->gspca_dev.cam; u32 priv = cam->cam_mode[sd->gspca_dev.curr_mode].priv; - if (priv & VV6410_CROP_TO_QVGA) { - PDEBUG(D_CONF, "Cropping to QVGA"); - stv06xx_write_sensor(sd, VV6410_XENDH, 320 - 1); - stv06xx_write_sensor(sd, VV6410_YENDH, 240 - 1); - } else { - stv06xx_write_sensor(sd, VV6410_XENDH, 360 - 1); - stv06xx_write_sensor(sd, VV6410_YENDH, 294 - 1); - } - if (priv & VV6410_SUBSAMPLE) { PDEBUG(D_CONF, "Enabling subsampling"); stv06xx_write_bridge(sd, STV_Y_CTRL, 0x02);