From 9fe9b26b8e1a6cdbb02bf37ed2e361d6ba4447a7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 27 Dec 2005 09:23:29 +0000 Subject: match about 15 more clone chips --- sys/dev/i2c/adt7460.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'sys/dev/i2c/adt7460.c') 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; -- cgit v1.2.3