aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-24 13:49:33 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:04:24 -0500
commit8574ac690eab730a3ff735177af1d52e45e36c8b (patch)
treea31cc6d453810d62693619f9c58dcdce43e1779c /include/media
parent67d52e29032dd2f21d4080331f47a21205f337f6 (diff)
V4L/DVB (6921): include/media/v4l2-i2c-drv.h must #include <media/v4l2-common.h>
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> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-i2c-drv.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/media/v4l2-i2c-drv.h b/include/media/v4l2-i2c-drv.h
index d758b765e0ff..9e4bab276915 100644
--- a/include/media/v4l2-i2c-drv.h
+++ b/include/media/v4l2-i2c-drv.h
@@ -21,6 +21,11 @@
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 */ 22 */
23 23
24#ifndef __V4L2_I2C_DRV_H__
25#define __V4L2_I2C_DRV_H__
26
27#include <media/v4l2-common.h>
28
24struct v4l2_i2c_driver_data { 29struct v4l2_i2c_driver_data {
25 const char * const name; 30 const char * const name;
26 int driverid; 31 int driverid;
@@ -59,3 +64,5 @@ static void __exit v4l2_i2c_drv_cleanup(void)
59 64
60module_init(v4l2_i2c_drv_init); 65module_init(v4l2_i2c_drv_init);
61module_exit(v4l2_i2c_drv_cleanup); 66module_exit(v4l2_i2c_drv_cleanup);
67
68#endif /* __V4L2_I2C_DRV_H__ */