media: uvcvideo: Split uvc_video_enable into two
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Mon, 5 Nov 2018 15:28:24 +0000 (10:28 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 5 Dec 2018 08:17:34 +0000 (03:17 -0500)
commit571e70dbd42105611419ccc38266d58f8e0a22ee
treeb1e3ac9230570f50b7eb2d0d42587834351780b4
parentb012186acef57b683e3c22ba758d60c3780db16a
media: uvcvideo: Split uvc_video_enable into two

uvc_video_enable() is used both to start and stop the video stream
object, however the single function entry point shares no code between
the two operations.

Split the function into two distinct calls, and rename to
uvc_video_start_streaming() and uvc_video_stop_streaming() as
appropriate.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvc_video.c
drivers/media/usb/uvc/uvcvideo.h