usb: gadget: uvc: Minimize #include in headers
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 21 May 2018 08:28:52 +0000 (11:28 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 26 Jul 2018 10:33:44 +0000 (13:33 +0300)
commit284eb1663bed1fe0934d60755443504aeea011f8
tree8aba35e5d03028e557dd0da9519149b0e0cf1330
parentd396e47fb558a819226955ce5db0149fde88da0f
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>
drivers/usb/gadget/function/f_uvc.c
drivers/usb/gadget/function/f_uvc.h
drivers/usb/gadget/function/u_uvc.h
drivers/usb/gadget/function/uvc.h
drivers/usb/gadget/function/uvc_queue.h
drivers/usb/gadget/function/uvc_v4l2.c
drivers/usb/gadget/function/uvc_video.h