summaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/si470x/Kconfig
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-05 21:08:12 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-04-17 11:16:37 +0200
commit58757984ca3c73284a45dd53ac66f1414057cd09 (patch)
treea0eff49b9ae2a25f699fcda13618796a4f013d8d /drivers/media/radio/si470x/Kconfig
parentmedia: omap4iss: make it build with COMPILE_TEST (diff)
downloadlinux-58757984ca3c73284a45dd53ac66f1414057cd09.tar.xz
linux-58757984ca3c73284a45dd53ac66f1414057cd09.zip
media: si470x: allow build both USB and I2C at the same time
Currently, either USB or I2C is built. Change it to allow having both enabled at the same time. The main reason is that COMPILE_TEST all[yes/mod]builds will now contain all drivers under drivers/media. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/radio/si470x/Kconfig')
-rw-r--r--drivers/media/radio/si470x/Kconfig16
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/media/radio/si470x/Kconfig b/drivers/media/radio/si470x/Kconfig
index a466654ee5c9..a21172e413a9 100644
--- a/drivers/media/radio/si470x/Kconfig
+++ b/drivers/media/radio/si470x/Kconfig
@@ -1,3 +1,17 @@
+config RADIO_SI470X
+ tristate "Silicon Labs Si470x FM Radio Receiver support"
+ depends on VIDEO_V4L2
+ ---help---
+ This is a driver for devices with the Silicon Labs SI470x
+ chip (either via USB or I2C buses).
+
+ Say Y here if you want to connect this type of radio to your
+ computer's USB port or if it is used by some other driver
+ via I2C bus.
+
+ To compile this driver as a module, choose M here: the
+ module will be called radio-si470x-common.
+
config USB_SI470X
tristate "Silicon Labs Si470x FM Radio Receiver support with USB"
depends on USB && RADIO_SI470X
@@ -25,7 +39,7 @@ config USB_SI470X
config I2C_SI470X
tristate "Silicon Labs Si470x FM Radio Receiver support with I2C"
- depends on I2C && RADIO_SI470X && !USB_SI470X
+ depends on I2C && RADIO_SI470X
---help---
This is a driver for I2C devices with the Silicon Labs SI470x
chip.