]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7124: support fractional sampling_frequency
authorDavid Lechner <dlechner@baylibre.com>
Thu, 11 Sep 2025 21:42:03 +0000 (16:42 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 Sep 2025 13:40:40 +0000 (14:40 +0100)
commitb2dbba2b9388636d0a6066c52f9507c7a7cdf40c
tree2f5001ddaa497b173b0366f8219b5a47504e049b
parentd904b8e6d4efadbcb4a4a0e077850cabbee513ed
iio: adc: ad7124: support fractional sampling_frequency

Modify the attribute read/write functions for sampling_frequency and
filter_low_pass_3db_frequency to return fractional values.

These ADCs support output data rates in the single digits, so being
able to specify fractional values is necessary to use all possible
sampling frequencies.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c