diff options
author | Billy Tsai <billy_tsai@aspeedtech.com> | 2021-09-22 11:15:17 +0300 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2021-11-01 09:42:07 +0300 |
commit | e3da596f7763ea2b9d714fef69029ea159818198 (patch) | |
tree | 904c530ba139734a36fec2c4c5ac0d32015b3f9b /crypto | |
parent | df09911371104fc9eb56b9ddeccb2f20b9285374 (diff) | |
download | linux-e3da596f7763ea2b9d714fef69029ea159818198.tar.xz |
iio: adc: aspeed: Add func to set sampling rate.
Add the function to set the sampling rate and keep the sampling period
for a driver used to wait the fresh value.
In addition, since the ADC clock is required when initializing the ADC
device, move clk_prepare_enable ahead of the initialization phase.
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Link: https://lore.kernel.org/r/20210922081520.30580-9-billy_tsai@aspeedtech.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions