iio: adc: stm32-adc: use generic binding for sample-time
authorOlivier Moysan <olivier.moysan@foss.st.com>
Thu, 14 Oct 2021 13:12:28 +0000 (15:12 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 20 Oct 2021 13:43:55 +0000 (14:43 +0100)
commit796e5d0b1e9baa2c80c234efd54d561e6d1cf1e7
tree11395eed6eb14ecdc1e171b8758860d5dc8e46b6
parent0e346b2cfa855d6e6990dbdb220983fbf2bb0b92
iio: adc: stm32-adc: use generic binding for sample-time

Add st,min-sample-time-nsecs to channel generic binding.
Sample time can be defined par channel node. If a channel
is configured as differential, the same sample time applies
for both inputs.
Keep support of legacy st,min-sample-time-nsecs property
for backward compatibility.

Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com>
Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20211014131228.4692-8-olivier.moysan@foss.st.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc.c