diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2018-05-21 11:28:52 +0300 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2018-07-26 13:33:44 +0300 |
commit | 284eb1663bed1fe0934d60755443504aeea011f8 (patch) | |
tree | 8aba35e5d03028e557dd0da9519149b0e0cf1330 /drivers/usb/gadget/function/uvc.h | |
parent | d396e47fb558a819226955ce5db0149fde88da0f (diff) | |
download | linux-stable-284eb1663bed1fe0934d60755443504aeea011f8.tar.gz linux-stable-284eb1663bed1fe0934d60755443504aeea011f8.tar.bz2 linux-stable-284eb1663bed1fe0934d60755443504aeea011f8.zip |
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.h')
-rw-r--r-- | drivers/usb/gadget/function/uvc.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/usb/gadget/function/uvc.h b/drivers/usb/gadget/function/uvc.h index 053e4b72039d..93cf78b420fe 100644 --- a/drivers/usb/gadget/function/uvc.h +++ b/drivers/usb/gadget/function/uvc.h @@ -9,16 +9,22 @@ #ifndef _UVC_GADGET_H_ #define _UVC_GADGET_H_ -#include <linux/usb.h> /* For usb_endpoint_* */ +#include <linux/list.h> +#include <linux/mutex.h> +#include <linux/spinlock.h> #include <linux/usb/composite.h> -#include <linux/usb/gadget.h> -#include <linux/usb/g_uvc.h> #include <linux/videodev2.h> -#include <media/v4l2-fh.h> + #include <media/v4l2-device.h> +#include <media/v4l2-dev.h> +#include <media/v4l2-fh.h> #include "uvc_queue.h" +struct usb_ep; +struct usb_request; +struct uvc_descriptor_header; + /* ------------------------------------------------------------------------ * Debugging, printing and logging */ |