aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2022-12-31 14:41:28 +0000
committerJonathan Cameron <[email protected]>2023-01-08 12:04:01 +0000
commitb7b81d1c65bffb759c68d04b5e5450cf4e301f62 (patch)
treef4fa9e891678c17c21a581e40cfc7ef0abac3aa6
parent80cbddf59009933274989cb39d52eb8f0a43839f (diff)
iio: adc: ep93xx: Enable wider build testing with COMPILE_TEST
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. Signed-off-by: Jonathan Cameron <[email protected]> Cc: Alexander Sverdlin <[email protected]> Cc: Hartley Sweeten <[email protected]> Acked-by: Alexander Sverdlin <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/iio/adc/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index 46c4fc2fc534..7d6e74189a2d 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -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