summaryrefslogtreecommitdiffstats
path: root/sys/dev/i2c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2008-04-01 01:10:49 +0000
committerderaadt <deraadt@openbsd.org>2008-04-01 01:10:49 +0000
commitb86f8d574e0e637969c620fc74a31db188659f25 (patch)
tree7311b1bf6f5f7a3333b4dd95af1de75cbaa4a703 /sys/dev/i2c
parentnope, sorry, the miod/naddy raidframe change breaks almost all ramdisks. (diff)
downloadwireguard-openbsd-b86f8d574e0e637969c620fc74a31db188659f25.tar.xz
wireguard-openbsd-b86f8d574e0e637969c620fc74a31db188659f25.zip
only need 8 words to learn about i2c spd jc-42.4 sensors
Diffstat (limited to 'sys/dev/i2c')
-rw-r--r--sys/dev/i2c/i2c_scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c
index ce7cba81143..181f785b914 100644
--- a/sys/dev/i2c/i2c_scan.c
+++ b/sys/dev/i2c/i2c_scan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2c_scan.c,v 1.114 2008/03/27 05:46:09 cnst Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.115 2008/04/01 01:10:49 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -439,7 +439,7 @@ iic_dump(struct device *dv, u_int8_t addr, char *name)
printf(" %02x=%02x", i, iicprobe(i));
}
printf(" words", dv->dv_xname, addr);
- for (i = 0; i < 16; i++)
+ for (i = 0; i < 8; i++)
printf(" %02x=%04x", i, iicprobew(i));
if (name)
printf(": %s", name);