mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
The uvc request headerlen of 2 was defined as UVCG_REQUEST_HEADER_LEN
in commit e81e7f9a0e ("usb: gadget: uvc: add scatter gather support").
We missed to use it consistently. This patch fixes that.
Reviewed-by: Paul Elder <[email protected]>
Signed-off-by: Michael Grzeschik <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
22 lines
554 B
C
22 lines
554 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 enable);
|
|
|
|
int uvcg_video_init(struct uvc_video *video, struct uvc_device *uvc);
|
|
|
|
#endif /* __UVC_VIDEO_H__ */
|