iio: Kconfig: at91_adc: add COMPILE_TEST dependency to driver
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Mon, 25 May 2020 10:27:44 +0000 (13:27 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 14 Jun 2020 10:49:52 +0000 (11:49 +0100)
Since changes can come from all sort of places, it may make sense to have
this symbol as a dependency to make sure that the 'make allmodconfig' &&
'make allyesconfig' build rules cover this driver as well for a
compile-build/test.

It seemed useful [recently] when trying to apply a change for this.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/Kconfig

index ff35696..c4d3299 100644 (file)
@@ -294,7 +294,7 @@ config ASPEED_ADC
 
 config AT91_ADC
        tristate "Atmel AT91 ADC"
-       depends on ARCH_AT91
+       depends on ARCH_AT91 || COMPILE_TEST
        depends on INPUT && SYSFS
        select IIO_BUFFER
        select IIO_TRIGGERED_BUFFER