iio: adc: stm32: manage min sampling time on all internal channels
authorOlivier Moysan <olivier.moysan@foss.st.com>
Wed, 12 Oct 2022 14:22:01 +0000 (16:22 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:43:59 +0000 (19:43 +0000)
commit7cb2303dd02487cc18bc9ff0fc1338e8c78ae846
tree0dc27909d011f9ff1ebce49c1b2ec4d7cfd7c604
parentcf0fb80ae1675179620d964d629b43ca57219ced
iio: adc: stm32: manage min sampling time on all internal channels

Force minimum sampling time for all internal channels according
to datasheet requirement. This value can be increased through
DT st,min-sample-time-ns property.

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-5-olivier.moysan@foss.st.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc.c