diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 13:49:33 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 13:49:33 -0500 |
commit | 84a09a54b3d1036b3640aa08e1fb38e7731e9264 (patch) | |
tree | 408e46f00a77843a022120e7c2be080fcfa58cf3 /linux/include/media | |
parent | 41cbf1277f97ec6018dfc1e878e476298abd6b6a (diff) | |
download | mediapointer-dvb-s2-84a09a54b3d1036b3640aa08e1fb38e7731e9264.tar.gz mediapointer-dvb-s2-84a09a54b3d1036b3640aa08e1fb38e7731e9264.tar.bz2 |
include/media/v4l2-i2c-drv.h must #include <media/v4l2-common.h>
From: Michael Krufky <mkrufky@linuxtv.org>
Fix the following compiler error:
v4l2-i2c-drv.h:72: error: implicit declaration of function 'v4l2_i2c_attach'
Also, prevent multiple inclusions of v4l2-i2c-drv.h
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/include/media')
-rw-r--r-- | linux/include/media/v4l2-i2c-drv.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-i2c-drv.h b/linux/include/media/v4l2-i2c-drv.h index 09e5f8de5..8b5d74912 100644 --- a/linux/include/media/v4l2-i2c-drv.h +++ b/linux/include/media/v4l2-i2c-drv.h @@ -21,6 +21,11 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifndef __V4L2_I2C_DRV_H__ +#define __V4L2_I2C_DRV_H__ + +#include <media/v4l2-common.h> + struct v4l2_i2c_driver_data { const char * const name; int driverid; @@ -206,3 +211,5 @@ static void __exit v4l2_i2c_drv_cleanup(void) module_init(v4l2_i2c_drv_init); module_exit(v4l2_i2c_drv_cleanup); + +#endif /* __V4L2_I2C_DRV_H__ */ |