summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/uvc_video.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-05-21 11:28:52 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-07-26 13:33:44 +0300
commit284eb1663bed1fe0934d60755443504aeea011f8 (patch)
tree8aba35e5d03028e557dd0da9519149b0e0cf1330 /drivers/usb/gadget/function/uvc_video.h
parentd396e47fb558a819226955ce5db0149fde88da0f (diff)
downloadlinux-284eb1663bed1fe0934d60755443504aeea011f8.tar.xz
usb: gadget: uvc: Minimize #include in headers
In order to speed up compilation, only include the headers that are strictly required within other headers. To that end, use forward structure declaration and move #include statements to .c file as appropriate. While at it, sort headers alphabetically, and remove unneeded __KERNEL__ guards. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/function/uvc_video.h')
-rw-r--r--drivers/usb/gadget/function/uvc_video.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/uvc_video.h b/drivers/usb/gadget/function/uvc_video.h
index 6c20aa75f966..7d77122b0ff9 100644
--- a/drivers/usb/gadget/function/uvc_video.h
+++ b/drivers/usb/gadget/function/uvc_video.h
@@ -12,6 +12,8 @@
#ifndef __UVC_VIDEO_H__
#define __UVC_VIDEO_H__
+struct uvc_video;
+
int uvcg_video_pump(struct uvc_video *video);
int uvcg_video_enable(struct uvc_video *video, int enable);