mbox series

[0/9] iio: imu: adis: make use the cleanup.h magic

Message ID 20240618-dev-iio-adis-cleanup-v1-0-bd93ce7845c7@analog.com (mailing list archive)
Headers show
Series iio: imu: adis: make use the cleanup.h magic | expand

Message

Nuno Sá June 18, 2024, 1:32 p.m. UTC
This is a simple series for moving the adis library into using the
cleanup.h based locks.

It also introduces new helpers (a normal and a scoped lock) for grabbing
the adis device lock using the automatic cleanup guards. In the end
(after updating all users) these new helpers fully replace the legacy
adis_dev_lock() and adis_dev_unlock(). 

---
Nuno Sa (9):
      iio: imu: adis_buffer: split trigger handling
      iio: imu: adis: move to the cleanup magic
      iio: imu: adis: add cleanup based lock helpers
      iio: gyro: adis16260: make use of the new lock helpers
      iio: gyro: adis16260: make use of the new lock helpers
      iio: imu: adis16400: make use of the new lock helpers
      iio: imu: adis16480: make use of the new lock helpers
      iio: imu: adis16475: make use of the new lock helpers
      iio: imu: adis: remove legacy lock helpers

 drivers/iio/gyro/adis16136.c  | 26 ++++++----------
 drivers/iio/gyro/adis16260.c  | 19 +++++-------
 drivers/iio/imu/adis.c        | 11 +++----
 drivers/iio/imu/adis16400.c   | 72 +++++++++++++++++++++----------------------
 drivers/iio/imu/adis16475.c   | 43 +++++++++-----------------
 drivers/iio/imu/adis16480.c   | 65 +++++++++++++++-----------------------
 drivers/iio/imu/adis_buffer.c | 52 ++++++++++++++++---------------
 include/linux/iio/imu/adis.h  | 66 ++++++++++-----------------------------
 8 files changed, 138 insertions(+), 216 deletions(-)
---
base-commit: cc1ce839526a65620778617da0b022bd88e8a139
change-id: 20240618-dev-iio-adis-cleanup-b6571fddfe13
--

Thanks!
- Nuno Sá