iio: adc: stm32: add dt option to set resolution
authorFabrice Gasnier <fabrice.gasnier@st.com>
Fri, 31 Mar 2017 12:32:38 +0000 (14:32 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 3 Apr 2017 19:46:01 +0000 (20:46 +0100)
commit25a85bed36f7da4e411f8744c2962e4e1003d7ea
treee418f56651f862d2f9dd7ebc91d92c264b715344
parent021087309d2801d6d94bbd6be7e3f8297edb3190
iio: adc: stm32: add dt option to set resolution

stm32 adc supports several resolution. Add 'assigned-resolution-bits'
dt optional property to set it. Default to maximum resolution in case
it isn't set.

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