Skip to content

Commit

Permalink
Kconfig.adi: include all subsystem Kconfig.adi files in a single place
Browse files Browse the repository at this point in the history
This should have been done like this from the start.
All these symbols will appear on the first page, but that isn't a bad
thing.

The patch pollution to the vanilla kernel should be reduced a bit, with
only the central Kconfig being patched, and all other Kconfig.adi files
being included in the main one.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Nov 13, 2020
1 parent 39dc6a4 commit 92221d3
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 16 deletions.
6 changes: 6 additions & 0 deletions Kconfig.adi
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ config KERNEL_ALL_ADI_DRIVERS
select AXI_INTR_MONITOR
select FB_TFT_SEPS525
select LEDS_AS3645A

source "drivers/hwmon/Kconfig.adi"
source "drivers/iio/Kconfig.adi"
source "drivers/input/Kconfig.adi"
source "drivers/media/Kconfig.adi"
source "sound/soc/codecs/Kconfig.adi"
2 changes: 0 additions & 2 deletions drivers/hwmon/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ menuconfig HWMON

if HWMON

source "drivers/hwmon/Kconfig.adi"

config HWMON_VID
tristate

Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/Kconfig.adi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# This file exists solely to be include in drivers/hwmon/Kconfig
# This file exists solely to be include in Kconfig.adi

config HWMON_ALL_ADI_DRIVERS
tristate "Build all Analog Devices HWMON Drivers"
Expand Down
3 changes: 0 additions & 3 deletions drivers/iio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ menuconfig IIO

if IIO

# Not upstream
source "drivers/iio/Kconfig.adi"

config IIO_BUFFER
bool "Enable buffer support within IIO"
help
Expand Down
2 changes: 1 addition & 1 deletion drivers/iio/Kconfig.adi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# This file exists solely to be include in drivers/iio/Kconfig
# This file exists solely to be include in Kconfig.adi
# It's a bit of hurry-ed-up job; many symbols need to be depended
# on I2C or SPI, but that can be done later; the ADI image has
# these symbols enabled anyway
Expand Down
2 changes: 0 additions & 2 deletions drivers/input/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ config INPUT

if INPUT

source "drivers/input/Kconfig.adi"

config INPUT_LEDS
tristate "Export input device LEDs in sysfs"
depends on LEDS_CLASS
Expand Down
2 changes: 0 additions & 2 deletions drivers/media/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ if MEDIA_SUPPORT

comment "Multimedia core support"

source "drivers/media/Kconfig.adi"

#
# Multimedia support - automatically enable V4L2 and DVB core
#
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/Kconfig.adi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# This file exists solely to be include in drivers/media/Kconfig
# This file exists solely to be include in Kconfig.adi

config MEDIA_ALL_ADI_DRIVERS
tristate "Build all Analog Devices Media Drivers"
Expand Down
3 changes: 0 additions & 3 deletions sound/soc/codecs/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ config SND_SOC_I2C_AND_SPI

menu "CODEC drivers"

# Not upstream
source "sound/soc/codecs/Kconfig.adi"

config SND_SOC_ALL_CODECS
tristate "Build all ASoC CODEC drivers"
depends on COMPILE_TEST
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/codecs/Kconfig.adi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# This file exists solely to be include in sound/soc/codecs/Kconfig
# This file exists solely to be include in Kconfig.adi
# Unfortunately, this is the best approach to build all ADI codecs
# in a single change, since all that's needed is to select the
# 'SND_SOC_ALL_ADI_CODECS' symbol and all should work
Expand Down

0 comments on commit 92221d3

Please sign in to comment.