summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/u_uvc.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/u_uvc.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/u_uvc.h')
-rw-r--r--drivers/usb/gadget/function/u_uvc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/u_uvc.h b/drivers/usb/gadget/function/u_uvc.h
index d00d3ded71c0..a6fdde6b162b 100644
--- a/drivers/usb/gadget/function/u_uvc.h
+++ b/drivers/usb/gadget/function/u_uvc.h
@@ -13,6 +13,7 @@
#ifndef U_UVC_H
#define U_UVC_H
+#include <linux/mutex.h>
#include <linux/usb/composite.h>
#include <linux/usb/video.h>