summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2006-01-13 02:21:46 +0000
committerderaadt <deraadt@openbsd.org>2006-01-13 02:21:46 +0000
commita7654efd8256d768adbda6b2182c0758548c6fff (patch)
tree1517748b37965cb93caacf246a4fa14219ae129a
parentXr adb(4) (diff)
downloadwireguard-openbsd-a7654efd8256d768adbda6b2182c0758548c6fff.tar.xz
wireguard-openbsd-a7654efd8256d768adbda6b2182c0758548c6fff.zip
damn, on the ds1721 we can be sure of even fewer known bits
-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) {