iio: adc: stm32: introduce compatible data cfg
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 29 May 2017 09:28:18 +0000 (11:28 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 11 Jun 2017 14:07:25 +0000 (15:07 +0100)
commit64ad7f6438f3be51a14ee5ae766ffee76cd28b02
tree0c0767e53590dd748613d7d1c94390e2239568ff
parent9fd243c4fb872381830a9c0ceb5d65a47c0d0e0f
iio: adc: stm32: introduce compatible data cfg

Prepare support for stm32h7 adc variant by introducing compatible
configuration data.
Move STM32F4 specific stuff to compatible data structure:
- registers & bit fields
- input channels data
- start/stop procedures
- trigger definitions

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