summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2009-07-08 19:47:16 +0200
committerErik Andrén <erik.andren@gmail.com>2009-07-08 19:47:16 +0200
commit1bc63b5e2937a0a86714eb692c820245116e1325 (patch)
tree056c3abcddb67ca049c299438bdf79fc8d30d07c /linux
parent900f5eab6c506d9e1832d73b2f9c9dfb03101e83 (diff)
downloadmediapointer-dvb-s2-1bc63b5e2937a0a86714eb692c820245116e1325.tar.gz
mediapointer-dvb-s2-1bc63b5e2937a0a86714eb692c820245116e1325.tar.bz2
gspca - m5602-s5k4aa: Remove erroneous register writes
From: Erik Andrén <erik.andren@gmail.com> 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 Priority: high Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
index 4a105cb38..1dd7c161f 100644
--- a/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
+++ b/linux/drivers/media/video/gspca/m5602/m5602_s5k4aa.c
@@ -478,9 +478,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)
@@ -526,9 +523,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)