diff options
author | Arnd Bergmann <arnd@arndb.de> | 2014-04-09 11:18:10 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-05-10 06:42:09 -0400 |
commit | 758ee467d37b6de6b3ca412d0cc90d2b9966b1af (patch) | |
tree | 239f4916983786f0300921b4947f276925f7d741 /drivers/iio | |
parent | cc8b49fa26f57cc0096e702d3e7c3f7c3e263300 (diff) |
iio:adc: at91 requires the input subsystem
Building the at91 adc driver with CONFIG_INPUT disabled results in this
build error:
ERROR: "input_event" [drivers/iio/adc/at91_adc.ko] undefined!
ERROR: "input_unregister_device" [drivers/iio/adc/at91_adc.ko] undefined!
ERROR: "input_free_device" [drivers/iio/adc/at91_adc.ko] undefined!
ERROR: "input_register_device" [drivers/iio/adc/at91_adc.ko] undefined!
ERROR: "input_set_abs_params" [drivers/iio/adc/at91_adc.ko] undefined!
ERROR: "input_allocate_device" [drivers/iio/adc/at91_adc.ko] undefined!
To make sure we can build random configurations, this adds a Kconfig
dependency on CONFIG_INPUT, as we do for other similar drivers.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: linux-iio@vger.kernel.org
Cc: Josh Wu <josh.wu@atmel.com>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 6cbf34a90c04..ee9d85e22c48 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig | |||
@@ -110,6 +110,7 @@ config AD799X | |||
110 | config AT91_ADC | 110 | config AT91_ADC |
111 | tristate "Atmel AT91 ADC" | 111 | tristate "Atmel AT91 ADC" |
112 | depends on ARCH_AT91 | 112 | depends on ARCH_AT91 |
113 | depends on INPUT | ||
113 | select IIO_BUFFER | 114 | select IIO_BUFFER |
114 | select IIO_TRIGGERED_BUFFER | 115 | select IIO_TRIGGERED_BUFFER |
115 | select SYSFS | 116 | select SYSFS |