mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
This patch refactors the video disable logic in uvcg_video_enable into its own separate function 'uvcg_video_disable'. This function is now used anywhere uvcg_video_enable(video, 0) was used. Reviewed-by: Daniel Scally <[email protected]> Suggested-by: Michael Grzeschik <[email protected]> Signed-off-by: Avichal Rakesh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
23 lines
591 B
C
23 lines
591 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* uvc_video.h -- USB Video Class Gadget driver
|
|
*
|
|
* Copyright (C) 2009-2010
|
|
* Laurent Pinchart ([email protected])
|
|
*
|
|
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com
|
|
* Author: Andrzej Pietrasiewicz <[email protected]>
|
|
*/
|
|
#ifndef __UVC_VIDEO_H__
|
|
#define __UVC_VIDEO_H__
|
|
|
|
struct uvc_video;
|
|
|
|
int uvcg_video_enable(struct uvc_video *video);
|
|
int uvcg_video_disable(struct uvc_video *video);
|
|
|
|
int uvcg_video_init(struct uvc_video *video, struct uvc_device *uvc);
|
|
|
|
#endif /* __UVC_VIDEO_H__ */
|