summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-05-26 01:40:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-05-26 01:40:34 +0000
commit04f2fc9bd64817f24b0e047a475a29ca4b279a6d (patch)
tree8945adbcbed5eedf15a2a2525de7d9444fdcf85f /sys
parentd3a8dd4c7638aa701f53f2640d76876dd5c532b4 (diff)
The check for the mcp98243 sdtemp(4) device was too strict. Relax it.
Tested by Joe Gidi
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 27604690fc8..534a2297ca7 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.138 2011/03/10 23:14:30 deraadt Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.139 2011/05/26 01:40:33 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
@@ -896,7 +896,7 @@ iic_probe_sensor(struct device *self, u_int8_t addr)
name = "mcp98242";
} else if ((addr & 0x78) == 0x18 && iicprobew(0x06) == 0x0054 &&
(iicprobew(0x07) & 0xfffc) == 0x2100 &&
- (iicprobew(0x00) & 0xffe0) == 0x0000) {
+ (iicprobew(0x00) & 0xff00) == 0x0000) {
name = "mcp98243";
} else if ((addr & 0x78) == 0x18 && iicprobew(0x06) == 0x11d4 &&
iicprobew(0x07) == 0x0800 &&