Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155763
b: refs/heads/master
c: ac51295
h: refs/heads/master
i:
  155761: d4435c5
  155759: 4efbffe
v: v3
  • Loading branch information
Erik Andrén authored and Mauro Carvalho Chehab committed Jul 24, 2009
1 parent 65b5db3 commit 9e70f22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36a516d953e02523e78ce27fbff91a968a9e5751
refs/heads/master: ac51295ccc0ff922fea62cfc6f72cddf9c6c7306
8 changes: 5 additions & 3 deletions trunk/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,11 @@ static int hdcs_reg_write_seq(struct sd *sd, u8 reg, u8 *vals, u8 len)
(reg + len > 0xff)))
return -EINVAL;

for (i = 0; i < len; i++, reg++) {
regs[2*i] = reg;
regs[2*i+1] = vals[i];
for (i = 0; i < len; i++) {
regs[2 * i] = reg;
regs[2 * i + 1] = vals[i];
/* All addresses are shifted left one bit as bit 0 toggles r/w */
reg += 2;
}

return stv06xx_write_sensor_bytes(sd, regs, len);
Expand Down

0 comments on commit 9e70f22

Please sign in to comment.