Commit 89a58c83 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

V4L/DVB (4108): Fixes some userspace dependencies at V4L2 public api header

Make life easier for distro guys, by removing the need of including
at the userspace header.
Also, linux/compiler.h is not needed at userspace.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 5dab71b1
...@@ -15,10 +15,12 @@ ...@@ -15,10 +15,12 @@
#ifndef __LINUX_VIDEODEV2_H #ifndef __LINUX_VIDEODEV2_H
#define __LINUX_VIDEODEV2_H #define __LINUX_VIDEODEV2_H
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/time.h> /* need struct timeval */ #include <linux/time.h> /* need struct timeval */
#include <linux/compiler.h> /* need __user */
#else
#define __user
#endif #endif
#include <linux/types.h> #include <linux/types.h>
#include <linux/compiler.h> /* need __user */
#define HAVE_V4L2 1 #define HAVE_V4L2 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment