summaryrefslogtreecommitdiff
path: root/uvc-gadget.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-05-20 21:59:10 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-05-20 22:06:51 +0300
commitfc80b97c4b19dc68ddfce9bc8c90c9b2e106e68b (patch)
tree8a4708f108611b5661ff324bb2294764239e667e /uvc-gadget.c
parent3c5a666f9d2eea0e0f7e9a8a0eb8bbfd7687ca13 (diff)
uvc-gadget: Use new kernel API header
The UVC gadget driver now defines its API in the linux/usb/g_uvc.h public header, use it instead of including an internal kernel header through a relative path. The public API doesn't define the UVC_INTF_CONTROL and UVC_INTF_STREAMING macros, define them locally until we can get rid of them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'uvc-gadget.c')
-rw-r--r--uvc-gadget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uvc-gadget.c b/uvc-gadget.c
index 4d59ab8..9c7a479 100644
--- a/uvc-gadget.c
+++ b/uvc-gadget.c
@@ -33,10 +33,12 @@
#include <errno.h>
#include <linux/usb/ch9.h>
+#include <linux/usb/g_uvc.h>
#include <linux/usb/video.h>
#include <linux/videodev2.h>
-#include "../drivers/usb/gadget/uvc.h"
+#define UVC_INTF_CONTROL 0
+#define UVC_INTF_STREAMING 1
#define clamp(val, min, max) ({ \
typeof(val) __val = (val); \