diff options
author | Alisa-Dariana Roman <alisa.roman@analog.com> | 2023-09-25 00:51:47 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-10-05 14:44:06 +0100 |
commit | e49075c7e9420b11b8e1aa8434e8790282df4a39 (patch) | |
tree | 250145aa000335e62516a40ff4c70f8460faa890 /Kconfig | |
parent | 874bbd1219c70b0d14881214c9768a0e4598fad5 (diff) | |
download | lwn-e49075c7e9420b11b8e1aa8434e8790282df4a39.tar.gz lwn-e49075c7e9420b11b8e1aa8434e8790282df4a39.zip |
iio: adc: ad7192: Improve f_order computation
Instead of using the f_order member of ad7192_state, a function that
computes the f_order coefficient makes more sense. This coefficient is a
function of the sinc filter and chop filter states.
Remove f_order member of ad7192_state structure. Instead use
ad7192_compute_f_order function to compute the f_order coefficient
according to the sinc filter and chop filter states passed as
parameters.
Add ad7192_get_f_order function that returns the current f_order
coefficient of the device.
Add ad7192_compute_f_adc function that computes the f_adc value
according to the sinc filter and chop filter states passed as
parameters.
Add ad7192_get_f_adc function that returns the current f_adc value of
the device.
Signed-off-by: Alisa-Dariana Roman <alisa.roman@analog.com>
Link: https://lore.kernel.org/r/20230924215148.102491-3-alisadariana@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions