diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2003-03-12 20:26:39 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2003-03-12 20:26:39 -0800 |
| commit | 500d525042b8b4f2df766c385380f8a8d5c4920e (patch) | |
| tree | 284df3c98c673d58b9e0c77fea4c0e0db746853c /include/linux | |
| parent | 1464d8c7d4c095cd21f745ef3c07ea71a75b7fd4 (diff) | |
i2c: add i2c sysfs bus support.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/i2c.h | 3 |
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 |
