Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23266
b: refs/heads/master
c: 6eb5d9c
h: refs/heads/master
v: v3
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Mar 23, 2006
1 parent fab4455 commit d224c72
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: 6254312352dfd1c996245cb3bc74be901dc165cc
refs/heads/master: 6eb5d9ca9f1496108cb86f2d9bfc2db5d9c796fe
8 changes: 5 additions & 3 deletions trunk/drivers/media/video/saa7111.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ MODULE_PARM_DESC(debug, "Debug level (0-1)");

/* ----------------------------------------------------------------------- */

#define SAA7111_NR_REG 0x18

struct saa7111 {
unsigned char reg[32];
unsigned char reg[SAA7111_NR_REG];

int norm;
int input;
Expand Down Expand Up @@ -227,11 +229,11 @@ saa7111_command (struct i2c_client *client,
{
int i;

for (i = 0; i < 32; i += 16) {
for (i = 0; i < SAA7111_NR_REG; i += 16) {
int j;

printk(KERN_DEBUG "%s: %03x", I2C_NAME(client), i);
for (j = 0; j < 16; ++j) {
for (j = 0; j < 16 && i + j < SAA7111_NR_REG; ++j) {
printk(" %02x",
saa7111_read(client, i + j));
}
Expand Down

0 comments on commit d224c72

Please sign in to comment.