Skip to content

Commit

Permalink
media: platform: Kconfig: place platform drivers on a submenu
Browse files Browse the repository at this point in the history
Just like media bus drivers, place platform drivers on a
submenu, in order to better organize user-selection:

    Media drivers  --->
	    *** media drivers ***
	[*] Media USB Adapters  --->
	[*] Media PCI Adapters  --->
	-*- Radio Adapters  --->
	[*] Media platform devices  --->
	    *** MMC/SDIO DVB adapters ***
	< > Siano SMS1xxx based MDTV via SDIO interface
	[*] V4L test drivers  --->
	[*] DVB test drivers  --->
	    *** FireWire (IEEE 1394) Adapters ***
	<*> FireDTV and FloppyDTV
	    *** common driver options ***
	[ ] Enable Remote Controller support for Siano devices
	[ ] Enable debugfs for smsdvb

As this submenu depends on MEDIA_PLATFORM_DRIVERS and defaults to "y",
there's no need to change already-existing .config entries, nor touch
the several make *_defconfig.

Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Mar 18, 2022
1 parent 0461b70 commit d7700ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/media/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,12 @@ menu "Media drivers"
comment "Drivers filtered as selected at 'Filter media drivers'"
depends on MEDIA_SUPPORT_FILTER

comment "Media drivers"

source "drivers/media/usb/Kconfig"
source "drivers/media/pci/Kconfig"
source "drivers/media/radio/Kconfig"

# Common driver options
source "drivers/media/common/Kconfig"

if MEDIA_PLATFORM_SUPPORT
source "drivers/media/platform/Kconfig"
source "drivers/media/mmc/Kconfig"
Expand All @@ -234,6 +233,9 @@ endif

source "drivers/media/firewire/Kconfig"

# Common driver options
source "drivers/media/common/Kconfig"

endmenu

#
Expand Down
10 changes: 10 additions & 0 deletions drivers/media/platform/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
# Platform drivers
# Most drivers here are currently for webcam support

menuconfig MEDIA_PLATFORM_DRIVERS
bool "Media platform devices"
default "y"
help
Say Y here to enable support for platform-specific media drivers.

if MEDIA_PLATFORM_DRIVERS

config V4L_PLATFORM_DRIVERS
bool "V4L platform devices"
help
Expand Down Expand Up @@ -91,3 +99,5 @@ source "drivers/media/platform/tegra/vde/Kconfig"
source "drivers/media/platform/ti-vpe/Kconfig"
source "drivers/media/platform/via/Kconfig"
source "drivers/media/platform/xilinx/Kconfig"

endif # MEDIA_PLATFORM_DRIVERS

0 comments on commit d7700ca

Please sign in to comment.