diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-04 02:58:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2006-03-04 02:58:15 +0000 |
commit | eabd16bda3cbe44dd76a08cd3f916dc2f66eaae0 (patch) | |
tree | f20c7113f26af74e33ab3bd8d76f79db47d55e53 /sys/dev/i2c/i2c_scan.c | |
parent | d07b4171ee5e6ad7d190f81040a2d702a4bf85f7 (diff) |
handle lm96000 (another similar chip); ok kettenis, tested by stu@spacehopper.org
Diffstat (limited to 'sys/dev/i2c/i2c_scan.c')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 68f03341605..409edc8db30 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.71 2006/02/26 18:38:53 grange Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.72 2006/03/04 02:58:14 deraadt Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -437,7 +437,7 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) else if (iicprobe(0x3f) == 0x17) name = "lm86"; else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && - iicprobe(0x3f) == 0x68 && iicprobe(0xf8) != 0x01) + iicprobe(0x3f) == 0x68) name = "lm96000"; /* adt7460 compat? */ else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && (iicprobe(0x3f) == 0x60 || iicprobe(0x3f) == 0x62)) |