mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
466be4c9a6
The media driver USB_VIDEO_CLASS and USB_F_UVC are using the same function uvc_format_by_guid. Since the function is inline, every user will get a copy of the used uvc_fmts array and the function. This patch moves the code to an own compile unit and add this dependency as UVC_COMMON to both users. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com> Tested-by: Daniel Scally <dan.scally@ideasonboard.com> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20230126231456.3402323-4-m.grzeschik@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 lines
641 B
Plaintext
23 lines
641 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config USB_VIDEO_CLASS
|
|
tristate "USB Video Class (UVC)"
|
|
depends on VIDEO_DEV
|
|
select VIDEOBUF2_VMALLOC
|
|
select UVC_COMMON
|
|
help
|
|
Support for the USB Video Class (UVC). Currently only video
|
|
input devices, such as webcams, are supported.
|
|
|
|
For more information see: <http://linux-uvc.berlios.de/>
|
|
|
|
config USB_VIDEO_CLASS_INPUT_EVDEV
|
|
bool "UVC input events device support"
|
|
default y
|
|
depends on USB_VIDEO_CLASS
|
|
depends on USB_VIDEO_CLASS=INPUT || INPUT=y
|
|
help
|
|
This option makes USB Video Class devices register an input device
|
|
to report button events.
|
|
|
|
If you are in doubt, say Y.
|