]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: filter: admv8818: Support frequencies >= 2^32
authorBrian Pellegrino <bpellegrino@arka.org>
Fri, 28 Mar 2025 17:48:31 +0000 (13:48 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:16 +0000 (11:07 +0100)
commit5f136bfece00bb1daf80cf2121489f2eaeb11bdc
tree23e13eeeee8c59b18be20d7ec2655b1b9c4a91da
parent179b16087d94f54d16f86e076901ecd9a82383ea
iio: filter: admv8818: Support frequencies >= 2^32

[ Upstream commit 9016776f1301627de78a633bda7c898425a56572 ]

This patch allows writing u64 values to the ADMV8818's high and low-pass
filter frequencies. It includes the following changes:

- Rejects negative frequencies in admv8818_write_raw.
- Adds a write_raw_get_fmt function to admv8818's iio_info, returning
  IIO_VAL_INT_64 for the high and low-pass filter 3dB frequency channels.

Fixes: f34fe888ad05 ("iio:filter:admv8818: add support for ADMV8818")
Signed-off-by: Brian Pellegrino <bpellegrino@arka.org>
Signed-off-by: Sam Winchenbach <swinchenbach@arka.org>
Link: https://patch.msgid.link/20250328174831.227202-7-sam.winchenbach@framepointer.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/filter/admv8818.c