diff options
author | David Woodhouse <dwmw2@infradead.org> | 2006-04-25 15:10:40 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-04-25 15:10:40 +0200 |
commit | 5a570cc0a41bd316afc91ba2c7151fed70d10b31 (patch) | |
tree | 89fa6a2098f772dad535ddba9294e6ed7ed55f89 /include | |
parent | Include various private files only from within __KERNEL__ in genhd.h (diff) | |
download | linux-5a570cc0a41bd316afc91ba2c7151fed70d10b31.tar.xz linux-5a570cc0a41bd316afc91ba2c7151fed70d10b31.zip |
Sanitise linux/i2c-algo-ite.h for userspace consumption
It doesn't need to include i2c.h, because a forward declaration of
struct i2c_adapter is perfectly sufficient. And it can be inside
#ifdef __KERNEL__ along with the kernel-internal structure definition.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c-algo-ite.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/i2c-algo-ite.h b/include/linux/i2c-algo-ite.h index 26a8b89855f1..0073fe96c76e 100644 --- a/include/linux/i2c-algo-ite.h +++ b/include/linux/i2c-algo-ite.h @@ -29,7 +29,7 @@ #ifndef I2C_ALGO_ITE_H #define I2C_ALGO_ITE_H 1 -#include <linux/i2c.h> +#include <linux/types.h> /* Example of a sequential read request: struct i2c_iic_msg s_msg; @@ -49,6 +49,9 @@ struct i2c_iic_msg { char *buf; /* pointer to msg data */ }; +#ifdef __KERNEL__ +struct i2c_adapter; + struct i2c_algo_iic_data { void *data; /* private data for lolevel routines */ void (*setiic) (void *data, int ctl, int val); @@ -65,5 +68,5 @@ struct i2c_algo_iic_data { int i2c_iic_add_bus(struct i2c_adapter *); int i2c_iic_del_bus(struct i2c_adapter *); - +#endif /* __KERNEL__ */ #endif /* I2C_ALGO_ITE_H */ |