summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-26 01:59:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-26 01:59:37 +0000
commitb678d89bef2d9d051bf25095d6e0b0bb44f09677 (patch)
tree42dcb0c53421e57fdb2782afae183150b3a29b53 /sys
parentb8ae4635534d035d1495e6035113654e760219b6 (diff)
maxim1617 is the same
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/i2c/adm1021.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/dev/i2c/adm1021.c b/sys/dev/i2c/adm1021.c
index 9a1a3b3f590..c805aa10658 100644
--- a/sys/dev/i2c/adm1021.c
+++ b/sys/dev/i2c/adm1021.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adm1021.c,v 1.8 2005/12/26 01:04:55 deraadt Exp $ */
+/* $OpenBSD: adm1021.c,v 1.9 2005/12/26 01:59:36 deraadt Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt
@@ -65,16 +65,9 @@ admtemp_match(struct device *parent, void *match, void *aux)
struct i2c_attach_args *ia = aux;
if (strcmp(ia->ia_name, "adm1021") == 0 ||
- strcmp(ia->ia_name, "xeon") == 0) {
- /*
- * should also ensure that
- * config & 0x80 == 0x00
- * status1 & 0xc0 == 0x00
- * status2 & 0xbc == 0x00
- * before accepting this to be for real
- */
+ strcmp(ia->ia_name, "xeon") == 0 ||
+ strcmp(ia->ia_name, "maxim1617") == 0)
return (1);
- }
return (0);
}