mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-09 20:14:09 +08:00
media: move CEC USB drivers to a separate directory
As CEC support doesn't depend on MEDIA_SUPPORT, let's place the platform drivers outside the media menu. As a side effect, instead of depends on USB, drivers just select it. Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
4be5e8648b
commit
a81068181a
@ -34,4 +34,5 @@ menuconfig MEDIA_CEC_SUPPORT
|
||||
|
||||
if MEDIA_CEC_SUPPORT
|
||||
source "drivers/media/cec/platform/Kconfig"
|
||||
source "drivers/media/cec/usb/Kconfig"
|
||||
endif
|
||||
|
@ -1,2 +1,2 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
obj-y += core/ platform/
|
||||
obj-y += core/ platform/ usb/
|
||||
|
6
drivers/media/cec/usb/Kconfig
Normal file
6
drivers/media/cec/usb/Kconfig
Normal file
@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# USB drivers
|
||||
|
||||
source "drivers/media/cec/usb/pulse8/Kconfig"
|
||||
source "drivers/media/cec/usb/rainshadow/Kconfig"
|
6
drivers/media/cec/usb/Makefile
Normal file
6
drivers/media/cec/usb/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
#
|
||||
# Makefile for the CEC USB device drivers.
|
||||
#
|
||||
obj-$(CONFIG_USB_PULSE8_CEC) += pulse8/
|
||||
obj-$(CONFIG_USB_RAINSHADOW_CEC) += rainshadow/
|
@ -1,8 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
config USB_PULSE8_CEC
|
||||
tristate "Pulse Eight HDMI CEC"
|
||||
depends on USB_ACM
|
||||
select CEC_CORE
|
||||
select USB
|
||||
select USB_ACM
|
||||
select SERIO
|
||||
select SERIO_SERPORT
|
||||
help
|
@ -1,8 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
config USB_RAINSHADOW_CEC
|
||||
tristate "RainShadow Tech HDMI CEC"
|
||||
depends on USB_ACM
|
||||
select CEC_CORE
|
||||
select USB
|
||||
select USB_ACM
|
||||
select SERIO
|
||||
select SERIO_SERPORT
|
||||
help
|
@ -66,11 +66,5 @@ source "drivers/media/usb/hackrf/Kconfig"
|
||||
source "drivers/media/usb/msi2500/Kconfig"
|
||||
endif
|
||||
|
||||
if MEDIA_CEC_SUPPORT
|
||||
comment "USB HDMI CEC adapters"
|
||||
source "drivers/media/usb/pulse8-cec/Kconfig"
|
||||
source "drivers/media/usb/rainshadow-cec/Kconfig"
|
||||
endif
|
||||
|
||||
endif #MEDIA_USB_SUPPORT
|
||||
endif #USB
|
||||
|
@ -24,5 +24,3 @@ obj-$(CONFIG_VIDEO_EM28XX) += em28xx/
|
||||
obj-$(CONFIG_VIDEO_USBTV) += usbtv/
|
||||
obj-$(CONFIG_VIDEO_GO7007) += go7007/
|
||||
obj-$(CONFIG_DVB_AS102) += as102/
|
||||
obj-$(CONFIG_USB_PULSE8_CEC) += pulse8-cec/
|
||||
obj-$(CONFIG_USB_RAINSHADOW_CEC) += rainshadow-cec/
|
||||
|
Loading…
Reference in New Issue
Block a user