Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8574ac69 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab
Browse files

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: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 67d52e29
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -21,6 +21,11 @@
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 * 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 {
struct v4l2_i2c_driver_data {
	const char * const name;
	const char * const name;
	int driverid;
	int driverid;
@@ -59,3 +64,5 @@ static void __exit v4l2_i2c_drv_cleanup(void)


module_init(v4l2_i2c_drv_init);
module_init(v4l2_i2c_drv_init);
module_exit(v4l2_i2c_drv_cleanup);
module_exit(v4l2_i2c_drv_cleanup);

#endif /* __V4L2_I2C_DRV_H__ */