From 04f2fc9bd64817f24b0e047a475a29ca4b279a6d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 26 May 2011 01:40:34 +0000 Subject: The check for the mcp98243 sdtemp(4) device was too strict. Relax it. Tested by Joe Gidi --- sys/dev/i2c/i2c_scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 @@ -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 && -- cgit v1.2.3