iio: imu: adis_buffer: split trigger handling
authorNuno Sa <nuno.sa@analog.com>
Tue, 18 Jun 2024 13:32:04 +0000 (15:32 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 25 Jun 2024 20:04:49 +0000 (21:04 +0100)
commitd80d4a3ce3aa3b0d8ac6966cb15f79d0c4a542e2
tree1374a7e7bd1346635c6ffd36d89c9931a2048f91
parent4aa60bd98e77be185e845e222897f082a49d4611
iio: imu: adis_buffer: split trigger handling

Split trigger handling for devices that have paging and need to
select the correct page to get the data. Although this actually
introduces more LOC, it makes the code and the locking clear. It will
also make the following move to the cleanup magic cleaner.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240618-dev-iio-adis-cleanup-v1-1-bd93ce7845c7@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis_buffer.c