]> err.no Git - linux-2.6/commitdiff
V4L/DVB (6921): include/media/v4l2-i2c-drv.h must #include <media/v4l2-common.h>
authorMichael Krufky <mkrufky@linuxtv.org>
Mon, 24 Dec 2007 18:49:33 +0000 (15:49 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:24 +0000 (19:04 -0200)
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>
include/media/v4l2-i2c-drv.h

index d758b765e0ffb09df870ebcf882d9e60d74f423e..9e4bab2769151fd51eed09d77bbbb52b2a76068d 100644 (file)
  * 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;
@@ -59,3 +64,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__ */