[PATCH 0/8] iio: magnetometer: ak8975: driver cleanup
From: Joshua Crofts via B4 Relay
Date: Thu May 07 2026 - 10:39:28 EST
This series is a continuation of the previous ak8975 driver cleanup
effort, as most of the patches were picked.
Changes include:
- using BIT() and GENMASK() macros
- moving to devm_* resource management
- adding a scan index enum
- moving from using wait loops to iopoll functions
- various code style changes
Signed-off-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
---
Andy Shevchenko (5):
iio: magnetometer: ak8975: switch to using managed resources
iio: magnetometer: ak8975: consistently use 'data' parameter
iio: magnetometer: ak8975: unify messages with help of dev_err_probe()
iio: magnetometer: ak8975: use temporary variable for struct device
iio: magnetometer: ak8975: make use of the macros from bits.h
Joshua Crofts (3):
iio: magnetometer: ak8975: modernize polling loops with iopoll() macros
iio: magnetometer: ak8975: check if gpiod read was successful
iio: magnetometer: ak8975: add scan mask index enum
drivers/iio/magnetometer/ak8975.c | 268 +++++++++++++++++++-------------------
1 file changed, 134 insertions(+), 134 deletions(-)
---
base-commit: 74d173f29572951629d1e0b7456b424006e51b87
change-id: 20260507-magnetometer-fixes-post-pickup-c6dabdd66f54
Best regards,
--
Joshua Crofts <joshua.crofts1@xxxxxxxxx>