summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-03-12 20:26:39 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2003-03-12 20:26:39 -0800
commit500d525042b8b4f2df766c385380f8a8d5c4920e (patch)
tree284df3c98c673d58b9e0c77fea4c0e0db746853c /include/linux
parent1464d8c7d4c095cd21f745ef3c07ea71a75b7fd4 (diff)
i2c: add i2c sysfs bus support.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 0b293a405341..8f86852b16d8 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -34,6 +34,7 @@
#include <linux/module.h>
#include <linux/types.h>
#include <linux/i2c-id.h>
+#include <linux/device.h> /* for struct device */
#include <asm/semaphore.h>
/* --- General options ------------------------------------------------ */
@@ -144,6 +145,8 @@ struct i2c_driver {
int (*command)(struct i2c_client *client,unsigned int cmd, void *arg);
};
+extern struct bus_type i2c_bus_type;
+
/*
* i2c_client identifies a single device (i.e. chip) that is connected to an
* i2c bus. The behaviour is defined by the routines of the driver. This