aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/uvc/uvcvideo.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-11-05 10:28:24 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-05 03:17:34 -0500
commit571e70dbd42105611419ccc38266d58f8e0a22ee (patch)
treeb1e3ac9230570f50b7eb2d0d42587834351780b4 /drivers/media/usb/uvc/uvcvideo.h
parentmedia: uvcvideo: Move decode processing to process context (diff)
downloadlinux-dev-571e70dbd42105611419ccc38266d58f8e0a22ee.tar.xz
linux-dev-571e70dbd42105611419ccc38266d58f8e0a22ee.zip
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>
Diffstat (limited to '')
-rw-r--r--drivers/media/usb/uvc/uvcvideo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/usb/uvc/uvcvideo.h b/drivers/media/usb/uvc/uvcvideo.h
index c7e96d52decc..74fd6c27d64d 100644
--- a/drivers/media/usb/uvc/uvcvideo.h
+++ b/drivers/media/usb/uvc/uvcvideo.h
@@ -787,7 +787,8 @@ void uvc_mc_cleanup_entity(struct uvc_entity *entity);
int uvc_video_init(struct uvc_streaming *stream);
int uvc_video_suspend(struct uvc_streaming *stream);
int uvc_video_resume(struct uvc_streaming *stream, int reset);
-int uvc_video_enable(struct uvc_streaming *stream, int enable);
+int uvc_video_start_streaming(struct uvc_streaming *stream);
+void uvc_video_stop_streaming(struct uvc_streaming *stream);
int uvc_probe_video(struct uvc_streaming *stream,
struct uvc_streaming_control *probe);
int uvc_query_ctrl(struct uvc_device *dev, u8 query, u8 unit,