Message ID | 20250217140135.896574-1-jic23@kernel.org (mailing list archive) |
---|---|
Headers | show |
Series | IIO: Accelerometers: Sparse friendly claim of direct mode | expand |
On 2/17/25 8:01 AM, Jonathan Cameron wrote: > From: Jonathan Cameron <Jonathan.Cameron@huawei.com> > > Note that a number of the drivers touched in this series have no > obvious active maintainer, so it would be much appreciated if anyone > has time to take a look! > Reviewed-by: David Lechner <dlechner@baylibre.com>
From: Jonathan Cameron <Jonathan.Cameron@huawei.com> Note that a number of the drivers touched in this series have no obvious active maintainer, so it would be much appreciated if anyone has time to take a look! This is effectively part 2 of what will probably be around 5 series focused on moving from iio_device_claim/release_direct_mode() to iio_device_claim/release_direct(). The new form is more consistent with conditional locking semantics and sparse markings have been added that let us detect miss-balance between claim and release. More details can be found in the cover letter of the first series: https://lore.kernel.org/all/20250209180624.701140-1-jic23@kernel.org/ This series focuses on the accelerometer drivers. There are a couple of fixes in here that showed up during the conversion. They are old issues in error paths that I guess no one hit in practice, so I see no reason to rush them in before the next merge window. Jonathan Cameron (8): iio: accel: mma8452: Ensure error return on failure to matching oversampling ratio iio: accel: mma8452: Factor out guts of write_raw() to simplify locking iio: accel: mma8452: Switch to sparse friendly iio_device_claim/release_direct() iio: accel: kx022a: Factor out guts of write_raw() to allow direct returns iio: accel: kx022a: Switch to sparse friendly iio_device_claim/release_direct() iio: accel: msa311: Fix failure to release runtime pm if direct mode claim fails. iio: accel: msa311: Switch to sparse friendly iio_device_claim/release_direct() iio: accel: Switch to sparse friendly iio_device_claim/release_direct() drivers/iio/accel/adxl372.c | 7 +-- drivers/iio/accel/adxl380.c | 7 +-- drivers/iio/accel/bma180.c | 7 +-- drivers/iio/accel/bmi088-accel-core.c | 7 ++- drivers/iio/accel/fxls8962af-core.c | 21 +++---- drivers/iio/accel/kionix-kx022a.c | 74 ++++++++++++----------- drivers/iio/accel/mma8452.c | 86 +++++++++++++-------------- drivers/iio/accel/msa311.c | 32 +++++----- 8 files changed, 119 insertions(+), 122 deletions(-)