diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-27 09:23:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-27 09:23:29 +0000 |
commit | 9fe9b26b8e1a6cdbb02bf37ed2e361d6ba4447a7 (patch) | |
tree | e5cf367ac217ff31ad5fc71d87e351d775d8e156 /sys/dev/i2c/adt7460.c | |
parent | 0a3ac9ae2eb6d476c590f0ebde11d3e9c570d63c (diff) |
match about 15 more clone chips
Diffstat (limited to 'sys/dev/i2c/adt7460.c')
-rw-r--r-- | sys/dev/i2c/adt7460.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/i2c/adt7460.c b/sys/dev/i2c/adt7460.c index 500b3d1269d..e5c94c66ad7 100644 --- a/sys/dev/i2c/adt7460.c +++ b/sys/dev/i2c/adt7460.c @@ -1,4 +1,4 @@ -/* $OpenBSD: adt7460.c,v 1.2 2005/11/17 01:09:36 deraadt Exp $ */ +/* $OpenBSD: adt7460.c,v 1.3 2005/12/27 09:23:28 deraadt Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -81,7 +81,10 @@ adt_match(struct device *parent, void *match, void *aux) if (ia->ia_compat) { if (strcmp(ia->ia_compat, "adt7460") == 0 || - strcmp(ia->ia_compat, "adt7467") == 0) + strcmp(ia->ia_compat, "adt7467") == 0 || + strcmp(ia->ia_compat, "adt7476") == 0 || + strcmp(ia->ia_compat, "lm85") == 0 || + strcmp(ia->ia_compat, "emc6d10x") == 0) return (1); return (0); } @@ -102,7 +105,10 @@ adt_attach(struct device *parent, struct device *self, void *aux) iic_acquire_bus(sc->sc_tag, 0); sc->sc_chip = 7460; - if (ia->ia_compat && strcmp(ia->ia_compat, "adt7467") == 0) + /* check for the fancy "extension" chips XXX */ + if (ia->ia_compat && + (strcmp(ia->ia_compat, "adt7467") == 0 || + strcmp(ia->ia_compat, "adt7467") == 0)) sc->sc_chip = 7467; cmd = ADT7460_REVISION; |