summaryrefslogtreecommitdiff
path: root/sys/dev/i2c/i2cvar.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-15 16:23:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-11-15 16:23:35 +0000
commite81a9e6ddbbcf435959b012f5595da0ed2389886 (patch)
treeaa2643a45c77098fcb86874b7d751970cd00d379 /sys/dev/i2c/i2cvar.h
parentc8c7014162f692ead770cea7fb5b67b92fd04f97 (diff)
instead of passing OF nodes down to the drivers, pass name/compat string
pointers. This lets their match() functions actually make real decisions. OF-capable machines will pass name/compat pointers, but other machines will not. grudging ok kettenis
Diffstat (limited to 'sys/dev/i2c/i2cvar.h')
-rw-r--r--sys/dev/i2c/i2cvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/i2c/i2cvar.h b/sys/dev/i2c/i2cvar.h
index 7065df99932..bbda44a6595 100644
--- a/sys/dev/i2c/i2cvar.h
+++ b/sys/dev/i2c/i2cvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: i2cvar.h,v 1.1 2004/05/23 17:33:43 grange Exp $ */
+/* $OpenBSD: i2cvar.h,v 1.2 2005/11/15 16:23:31 deraadt Exp $ */
/* $NetBSD: i2cvar.h,v 1.1 2003/09/30 00:35:31 thorpej Exp $ */
/*
@@ -101,6 +101,8 @@ struct i2c_attach_args {
i2c_tag_t ia_tag; /* our controller */
i2c_addr_t ia_addr; /* address of device */
int ia_size; /* size (for EEPROMs) */
+ char *ia_name;
+ char *ia_compat;
};
/*