]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
iio: adc: stm32: allow to tune analog clock
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 28 Oct 2019 16:11:48 +0000 (17:11 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 9 Nov 2019 12:37:18 +0000 (12:37 +0000)
commitcb7e1b50e4e382c2c63ac0c80260db55c3a3c7ee
treeda91626900d5f527319900ed52f8f68ebd92e989
parenta1acbc223a0c000edc5353f0710d0001772c158d
iio: adc: stm32: allow to tune analog clock

Add new optional dt property to tune analog clock prescaler.
Driver looks for optional "st,max-clk-rate-hz", then computes
best approximation below that rate, using ADC internal prescaler.

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