public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] iio: accel: adxl313: small cleanups and error-handling improvements
@ 2026-04-16  5:16 Sanjay Chitroda
  2026-04-16  5:16 ` [PATCH 1/3] iio: accel: adxl313_core: Use devm-managed mutex initialization Sanjay Chitroda
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Sanjay Chitroda @ 2026-04-16  5:16 UTC (permalink / raw)
  To: lucas.p.stankus, lars, Michael.Hennerich, jic23
  Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel

From: Sanjay Chitroda <sanjayembeddedse@gmail.com>

Hi all,

This series contains a few small cleanups and robustness improvements
to the ADXL313 IIO accelerometer driver.

The changes modernize mutex handling using devm-managed helpers and
guard() to simplify locking logic and improve safety. In addition,
error handling during probe is cleaned up by switching to dev_err_probe()
to better handle deferred probing and avoid repeated log noise.

No functional changes are intended.

Testing:
  - Compiled with W=1
  - Build-tested on QEMU x86_64

Based on:
  <linux-v7.0-rc7>

Thanks,
Sanjay Chitroda

Sanjay Chitroda (3):
  iio: accel: adxl313_core: Use devm-managed mutex initialization
  iio: accel: adxl313_core: use guard() to release mutex
  iio: accel: adxl313: Use dev_err_probe

 drivers/iio/accel/adxl313_core.c | 20 ++++++++------------
 drivers/iio/accel/adxl313_i2c.c  |  8 +++-----
 drivers/iio/accel/adxl313_spi.c  |  8 +++-----
 3 files changed, 14 insertions(+), 22 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-04-16 19:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-16  5:16 [PATCH 0/3] iio: accel: adxl313: small cleanups and error-handling improvements Sanjay Chitroda
2026-04-16  5:16 ` [PATCH 1/3] iio: accel: adxl313_core: Use devm-managed mutex initialization Sanjay Chitroda
2026-04-16  8:25   ` Andy Shevchenko
2026-04-16  5:16 ` [PATCH 2/3] iio: accel: adxl313_core: use guard() to release mutex Sanjay Chitroda
2026-04-16  8:22   ` Andy Shevchenko
2026-04-16 18:22     ` Sanjay Chitroda
2026-04-16  5:16 ` [PATCH 3/3] iio: accel: adxl313: Use dev_err_probe Sanjay Chitroda
2026-04-16  8:24   ` Andy Shevchenko
2026-04-16 19:41     ` Sanjay Chitroda
2026-04-16  8:16 ` [PATCH 0/3] iio: accel: adxl313: small cleanups and error-handling improvements Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox