diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-12-26 19:57:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-12-26 19:57:18 +0000 |
commit | c5009e2fbaae873af037704e5d96f4f22f34dfd4 (patch) | |
tree | 3ed55345a45e4f0adcf1af5d4f4d71284c3dd311 /sys/dev | |
parent | 31c98867ce2c1c50e20d3694531b9f3f6c194858 (diff) |
The adt7475 has a fixed address of 0x2e.
ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/i2c/i2c_scan.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/i2c/i2c_scan.c b/sys/dev/i2c/i2c_scan.c index 2ec008ccd3b..5dedc118b55 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.94 2006/12/25 21:25:39 deraadt Exp $ */ +/* $OpenBSD: i2c_scan.c,v 1.95 2006/12/26 19:57:17 kettenis Exp $ */ /* * Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org> @@ -465,8 +465,7 @@ iic_probe(struct device *self, struct i2cbus_attach_args *iba, u_int8_t addr) else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && iicprobe(0x3d) == 0x76) name = "adt7476"; - else if ((addr == 0x2c || addr == 0x2d || addr == 0x2e) && - iicprobe(0x3d) == 0x75) + else if (addr == 0x2e && iicprobe(0x3d) == 0x75) name = "adt7475"; else if (iicprobe(0x3d) == 0x27 && (iicprobe(0x3f) == 0x60 || iicprobe(0x3f) == 0x6a)) |