mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 21:45:01 +08:00
dc0f755b42
Adding device context to the kernel log messages make them more useful. Add new uvcg_* macros based on dev_*() that print both the gadget device name and the function name. While at it, remove a commented out printk statement and an unused printk-based macro. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Tested-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
24 lines
596 B
C
24 lines
596 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* uvc_video.h -- USB Video Class Gadget driver
|
|
*
|
|
* Copyright (C) 2009-2010
|
|
* Laurent Pinchart (laurent.pinchart@ideasonboard.com)
|
|
*
|
|
* Copyright (c) 2013 Samsung Electronics Co., Ltd.
|
|
* http://www.samsung.com
|
|
* Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
|
|
*/
|
|
#ifndef __UVC_VIDEO_H__
|
|
#define __UVC_VIDEO_H__
|
|
|
|
struct uvc_video;
|
|
|
|
int uvcg_video_pump(struct uvc_video *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__ */
|