aboutsummaryrefslogtreecommitdiffstats
path: root/tools/iio/iio_utils.c
diff options
context:
space:
mode:
authorOlivier Moysan <olivier.moysan@foss.st.com>2022-10-12 16:21:58 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-10-17 08:51:26 +0100
commit174dac5dc800e4e2e4552baf6340846a344d01a3 (patch)
tree39ba19c7a94bc05de36fc0b7a0dd70e5821dc49e /tools/iio/iio_utils.c
parentiio: adc: mcp3911: mask out device ID in debug prints (diff)
downloadlinux-dev-174dac5dc800e4e2e4552baf6340846a344d01a3.tar.xz
linux-dev-174dac5dc800e4e2e4552baf6340846a344d01a3.zip
iio: adc: stm32-adc: fix channel sampling time init
Fix channel init for ADC generic channel bindings. In generic channel initialization, stm32_adc_smpr_init() is called to initialize channel sampling time. The "st,min-sample-time-ns" property is an optional property. If it is not defined, stm32_adc_smpr_init() is currently skipped. However stm32_adc_smpr_init() must always be called, to force a minimum sampling time for the internal channels, as the minimum sampling time is known. Make stm32_adc_smpr_init() call unconditional. Fixes: 796e5d0b1e9b ("iio: adc: stm32-adc: use generic binding for sample-time") Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20221012142205.13041-2-olivier.moysan@foss.st.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/iio/iio_utils.c')
0 files changed, 0 insertions, 0 deletions