summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-01-17 22:02:52 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-01-17 22:02:52 +0000
commitea43e25f43eac73d1e98558b0275de61bb86d231 (patch)
tree8c248f8dceccc85ee96b54a4b30897bbc191e51a
parent5faac2ac3fb23189be66c76e16ecc5df9d131ad3 (diff)
Match "w83791sd".
-rw-r--r--sys/dev/i2c/lm_i2c.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/i2c/lm_i2c.c b/sys/dev/i2c/lm_i2c.c
index 8cf2b4a1071..62e838e3701 100644
--- a/sys/dev/i2c/lm_i2c.c
+++ b/sys/dev/i2c/lm_i2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lm_i2c.c,v 1.8 2006/01/15 22:03:17 kettenis Exp $ */
+/* $OpenBSD: lm_i2c.c,v 1.9 2006/01/17 22:02:51 kettenis Exp $ */
/*
* Copyright (c) 2005 Mark Kettenis
@@ -47,19 +47,19 @@ lm_i2c_match(struct device *parent, void *match, void *aux)
struct i2c_attach_args *ia = aux;
if (strcmp(ia->ia_name, "as99127f") == 0 ||
+ strcmp(ia->ia_name, "w83627hf") == 0 ||
+ strcmp(ia->ia_name, "w83781d") == 0 ||
+ strcmp(ia->ia_name, "w83782d") == 0 ||
strcmp(ia->ia_name, "w83783s") == 0 ||
strcmp(ia->ia_name, "w83791d") == 0 ||
strcmp(ia->ia_name, "w83792d") == 0) {
return (1);
}
/*
- * XXX These chips also have an ISA bus interface and are
- * likely to attach twice. That's ok for now, but we should
- * probably disable these.
+ * XXX This chip doesn't have any real sensors, but we match
+ * it for now, just to knock out its satellites.
*/
- if (strcmp(ia->ia_name, "w83781d") == 0 ||
- strcmp(ia->ia_name, "w83782d") == 0 ||
- strcmp(ia->ia_name, "w83627hf") == 0) {
+ if (strcmp(ia->ia_name, "w83791sd") == 0) {
return (1);
}
return (0);