diff options
author | Alisa-Dariana Roman <alisadariana@gmail.com> | 2024-05-14 15:02:17 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-06-04 19:53:05 +0100 |
commit | f311151600dc104e6eeb0d0437582e0cf37d6962 (patch) | |
tree | a069cf17ac6bdd3227435f842e33049e5918593e /lib/zstd/common/compiler.h | |
parent | d174ebd41280fdd3fd3b1d10c46b48d29a14c56f (diff) |
iio: adc: ad7192: Use standard attribute
Replace custom attribute filter_low_pass_3db_frequency_available with
standard attribute.
Store the available values in ad7192_state struct.
The function that used to compute those values replaced by
ad7192_update_filter_freq_avail().
Function ad7192_show_filter_avail() is no longer needed.
Note that the initial available values are hardcoded.
Also moved the mutex lock and unlock in order to protect the whole
switch statement since each branch modifies the state of the device.
Reviewed-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Alisa-Dariana Roman <alisa.roman@analog.com>
Link: https://lore.kernel.org/r/20240514120222.56488-2-alisa.roman@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'lib/zstd/common/compiler.h')
0 files changed, 0 insertions, 0 deletions