summaryrefslogtreecommitdiff
path: root/sys/dev/i2c
diff options
context:
space:
mode:
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 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) {