summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-13 02:21:47 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-01-13 02:21:47 +0000
commit67995ee39650ce61f68608fa2177db0ee19951e0 (patch)
tree62d23d9ab54e44d3ab96edc80a6902383f699e43 /sys
parent0fcf017fd1e23fc4d79a8c7b03777ecc73c0c13e (diff)
damn, on the ds1721 we can be sure of even fewer known bits
Diffstat (limited to 'sys')
-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 32c5e29f4f6..4af1b22665f 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.56 2006/01/13 01:44:59 deraadt Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.57 2006/01/13 02:21:46 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -575,7 +575,7 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr)
name = "ds1624";
else if ((iicprobe(0xac) & 0x7e) == 0x0c)
name = "ds1631"; /* terrible probe */
- else if ((iicprobe(0xac) & 0x7e) == 0x0e)
+ else if ((iicprobe(0xac) & 0x2e) == 0x2e)
name = "ds1721"; /* terrible probe */
}
if (name == NULL) {