mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +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>
30 lines
603 B
Text
30 lines
603 B
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
# Used by common drivers, when they need to ask questions
|
|
config MEDIA_COMMON_OPTIONS
|
|
bool
|
|
|
|
comment "common driver options"
|
|
depends on MEDIA_COMMON_OPTIONS
|
|
|
|
config CYPRESS_FIRMWARE
|
|
tristate
|
|
depends on USB
|
|
|
|
config TTPCI_EEPROM
|
|
tristate
|
|
depends on I2C
|
|
|
|
config UVC_COMMON
|
|
tristate
|
|
|
|
config VIDEO_CX2341X
|
|
tristate
|
|
|
|
config VIDEO_TVEEPROM
|
|
tristate
|
|
depends on I2C
|
|
|
|
source "drivers/media/common/b2c2/Kconfig"
|
|
source "drivers/media/common/siano/Kconfig"
|
|
source "drivers/media/common/v4l2-tpg/Kconfig"
|
|
source "drivers/media/common/videobuf2/Kconfig"
|