]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
iio: imu: adis16550: fix swapped gyro/accel filter functions
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 27 Feb 2026 12:20:46 +0000 (14:20 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Mar 2026 14:11:30 +0000 (14:11 +0000)
commitea7e2e43d768102e2601dbbda42041c78d7a99f9
tree3c884279de888006425eae6f6c5494045e11a7bd
parent7cf2f6ed8e7a3bf481ef70b6b4a2edb8abfa5c57
iio: imu: adis16550: fix swapped gyro/accel filter functions

The low-pass filter handlers for IIO_ANGL_VEL and IIO_ACCEL call each
other's filter functions in both read_raw and write_raw. Swap them so
each channel type uses its correct filter accessor.

Fixes: bac4368fab62 ("iio: imu: adis16550: add adis16550 support")
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Acked-by: Robert Budai <robert.budai@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16550.c