Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161479
b: refs/heads/master
c: 43f8de7
h: refs/heads/master
i:
  161477: c86376b
  161475: 2dc9f42
  161471: c827f4c
v: v3
  • Loading branch information
Jan Nikitenko authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent 02f8a01 commit 4c08628
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 1420d498fd8890bbd878d261f317f9d64544ce0b
refs/heads/master: 43f8de7ac6d504dea159d7842724857e9e020964
12 changes: 5 additions & 7 deletions trunk/drivers/media/dvb/dvb-usb/af9015.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,24 +538,22 @@ static int af9015_copy_firmware(struct dvb_usb_device *d)
/* dump eeprom */
static int af9015_eeprom_dump(struct dvb_usb_device *d)
{
char buf[4+3*16+1], buf2[4];
u8 reg, val;

for (reg = 0; ; reg++) {
if (reg % 16 == 0) {
if (reg)
deb_info("%s\n", buf);
sprintf(buf, "%02x: ", reg);
deb_info(KERN_CONT "\n");
deb_info(KERN_DEBUG "%02x:", reg);
}
if (af9015_read_reg_i2c(d, AF9015_I2C_EEPROM, reg, &val) == 0)
sprintf(buf2, "%02x ", val);
deb_info(KERN_CONT " %02x", val);
else
strcpy(buf2, "-- ");
strcat(buf, buf2);
deb_info(KERN_CONT " --");
if (reg == 0xff)
break;
}
deb_info("%s\n", buf);
deb_info(KERN_CONT "\n");
return 0;
}

Expand Down

0 comments on commit 4c08628

Please sign in to comment.