iio: adc: ep93xx: Enable wider build testing with COMPILE_TEST
Jonathan Cameron
maintainerPATCH 1/1 iio: adc: ep93xx: Enable wider build testing with COMPILE_TEST
From: Jonathan Cameron <[email protected]>
It is useful to be able to build this driver without needing to build support for ARCH_EP93XX.
Also add an explicit dependency on HAS_IOMEM so we have devm_platform_ioremap_resource() etc available.
--- drivers/iio/adc/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iio/adc/Kconfig +2 -1
@@ -441,7 +441,8 @@ config ENVELOPE_DETECTOR config EP93XX_ADC tristate "Cirrus Logic EP93XX ADC driver" - depends on ARCH_EP93XX + depends on ARCH_EP93XX || COMPILE_TEST + depends on HAS_IOMEM help Driver for the ADC module on the EP93XX series of SoC from Cirrus Logic. It's recommended to switch on CONFIG_HIGH_RES_TIMERS option, in this
Signature · 1 line
2.39.0
Quoted 9 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
It is useful to be able to build this driver without needing to build support for
ARCH_EP93XX.Also add an explicit dependency on
HAS_IOMEMso we havedevm_platform_ioremap_resource()etc available.Signed-off-by Jonathan Cameron <[email protected]>
Quoted 20 lines
Cc Alexander Sverdlin <[email protected]>Cc Hartley Sweeten <[email protected]>---
drivers/iio/adc/Kconfig | 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/iio/adc/Kconfig +0
-0@@ -441,7 +441,8 @@ config ENVELOPE_DETECTOR
configEP93XX_ADC
tristate "Cirrus Logic EP93XX ADC driver"
- depends onARCH_EP93XX
+ depends onARCH_EP93XX||COMPILE_TEST
+ depends onHAS_IOMEM
help
Driver for the ADC module on the EP93XX series of SoC from Cirrus Logic. It's recommended to switch onCONFIG_HIGH_RES_TIMERSoption, in this
Signature · 1 line
Alexander Sverdlin.
Quoted 6 lines · On Wed, 04 Jan 2023 14:47:02 +0100 Alexander Sverdlin…
Quoted 5 lines · Jonathan Cameron
From: Jonathan Cameron <[email protected]>
It is useful to be able to build this driver without needing to build support for
ARCH_EP93XX.
Quoted 6 lines
Quoted 4 lines
Also add an explicit dependency on
HAS_IOMEMso we havedevm_platform_ioremap_resource()etc available.Signed-off-by Jonathan Cameron <[email protected]>
Applied.
Thanks,
J
Quoted 22 lines
Quoted 21 lines
Cc Alexander Sverdlin <[email protected]>Cc Hartley Sweeten <[email protected]>---
drivers/iio/adc/Kconfig | 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/iio/adc/Kconfig +0
-0@@ -441,7 +441,8 @@ config ENVELOPE_DETECTOR
configEP93XX_ADC
tristate "Cirrus Logic EP93XX ADC driver"
- depends onARCH_EP93XX
+ depends onARCH_EP93XX||COMPILE_TEST
+ depends onHAS_IOMEM
help
Driver for the ADC module on the EP93XX series of SoC from Cirrus Logic. It's recommended to switch onCONFIG_HIGH_RES_TIMERSoption, in this