summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-22 23:49:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-22 23:49:42 +0000
commit16c553c6e3bd443f1eadf63c03fa8c03cfd46c9a (patch)
treea13ec3f1a2e734385410fb7599c89a25a35ec9b0 /sys
parent95c5bfe3361b5ac9b9e025a3843f8ea60353909a (diff)
ne1619 is a clone by philips
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/i2c/adm1025.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/dev/i2c/adm1025.c b/sys/dev/i2c/adm1025.c
index 678b60f83cf..79c226390f1 100644
--- a/sys/dev/i2c/adm1025.c
+++ b/sys/dev/i2c/adm1025.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1025.c,v 1.3 2005/12/22 23:19:07 deraadt Exp $ */
+/* $OpenBSD: adm1025.c,v 1.4 2005/12/22 23:49:41 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -73,10 +73,16 @@ admtm_match(struct device *parent, void *match, void *aux)
{
struct i2c_attach_args *ia = aux;
- if (ia->ia_compat) {
- if (strcmp(ia->ia_compat, "adm1025") == 0)
- return (1);
- return (0);
+ if (strcmp(ia->ia_name, "adm1025") == 0 ||
+ strcmp(ia->ia_name, "ne1619") == 0) {
+ /*
+ * should also ensure that
+ * config & 0x80 == 0x00
+ * status1 & 0xc0 == 0x00
+ * status2 & 0xbc == 0x00
+ * before accepting this to be for real
+ */
+ return (1);
}
return (1);
}