V4L/DVB (12224): gspca - m5602-s5k4aa: Remove erroneous register writes
authorErik Andrén <erik.andren@gmail.com>
Wed, 8 Jul 2009 17:47:16 +0000 (14:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 24 Jul 2009 17:03:22 +0000 (14:03 -0300)
A couple of erroneous register writes snuck in that made the image go haywire. Remove these.
Many thanks to Grégory Lardière for finding this out

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/m5602/m5602_s5k4aa.c

index 191bcd7..0163903 100644 (file)
@@ -476,9 +476,6 @@ static int s5k4aa_set_vflip(struct gspca_dev *gspca_dev, __s32 val)
        err = m5602_write_sensor(sd, S5K4AA_PAGE_MAP, &data, 1);
        if (err < 0)
                return err;
-       err = m5602_write_sensor(sd, S5K4AA_READ_MODE, &data, 1);
-       if (err < 0)
-               return err;
 
        err = m5602_read_sensor(sd, S5K4AA_READ_MODE, &data, 1);
        if (err < 0)
@@ -524,9 +521,6 @@ static int s5k4aa_set_hflip(struct gspca_dev *gspca_dev, __s32 val)
        err = m5602_write_sensor(sd, S5K4AA_PAGE_MAP, &data, 1);
        if (err < 0)
                return err;
-       err = m5602_write_sensor(sd, S5K4AA_READ_MODE, &data, 1);
-       if (err < 0)
-               return err;
 
        err = m5602_read_sensor(sd, S5K4AA_READ_MODE, &data, 1);
        if (err < 0)