Skip to contentSkip to conversation

iio: adc: ep93xx: Enable wider build testing with COMPILE_TEST

PATCH In review Jonathan Cameron 2 participants 3 messages Dec 31, 2022 – Jan 8, 2023 IIO

lore
Share & tools
lore

Jonathan Cameron

author maintainer
#0 lore raw

PATCH 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.

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 +2 -1
index 46c4fc2fc534..7d6e74189a2d 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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_IOMEM so we have devm_platform_ioremap_resource() etc available.

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
index 46c4fc2fc534..7d6e74189a2d 100644
@@ -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
Alexander Sverdlin.
author maintainer Applied
#2 lore raw
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_IOMEM so we have devm_platform_ioremap_resource() etc available.

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
index 46c4fc2fc534..7d6e74189a2d 100644
@@ -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