iio: adc: stm32: Enable use of stm32 timer triggers
authorFabrice Gasnier <fabrice.gasnier@st.com>
Thu, 26 Jan 2017 14:28:30 +0000 (15:28 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 28 Jan 2017 18:24:12 +0000 (18:24 +0000)
commitf24a33b3e2a393856c315b23bbb5bebf422b0611
treeed334b480eeb0951e148b03ae2f25a0454c76f3c
parentda9b948514c36da480cc15f7c75f51417f882175
iio: adc: stm32: Enable use of stm32 timer triggers

STM32 ADC has external timer trigger sources. Use stm32 timer triggers
API (e.g. is_stm32_timer_trigger()) with local ADC lookup table to
validate a trigger can be used.
This also provides correct trigger selection value (e.g. extsel).

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/stm32-adc.c