Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/4] iio: accel: convert to guard(mutex)
@ 2026-03-12  8:19 Rajveer Chaudhari
  2026-03-12  8:19 ` [PATCH v3 1/4] iio: accel: bmc150: " Rajveer Chaudhari
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Rajveer Chaudhari @ 2026-03-12  8:19 UTC (permalink / raw)
  To: jic23, dlechner, nuno.sa, andy, waqar.hameed, linusw,
	sakari.ailus, harshit.m.mogalapalli, antoniu.miclaus,
	andrew.ijano
  Cc: linux-iio, linux-kernel, Rajveer Chaudhari

This series converts manual mutex_lock/mutex_unlock pairs to
guard(mutex) in two ADXL accelerometer drivers. Each conversion
also simplifies error handling by removing goto labels and
returning directly on error paths.

v3 : Fixed return statements to make it clear about good/error paths.
indentation fix and reducing code indent -- as suggested by
Jonathan Cameron

Link to v2: https://lore.kernel.org/all/20260309153408.71512-1-
rajveer.chaudhari.linux@gmail.com/

Rajveer Chaudhari (4):
  iio: accel: bmc150: convert to guard(mutex)
  iio: accel: mma8452: convert to guard(mutex)
  iio: accel: mma9551: convert to guard(mutex)
  iio: accel: sca3000: convert to guard(mutex)

 drivers/iio/accel/bmc150-accel-core.c |  22 ++--
 drivers/iio/accel/mma8452.c           |  21 ++--
 drivers/iio/accel/mma9551.c           |  10 +-
 drivers/iio/accel/sca3000.c           | 139 +++++++++++---------------
 4 files changed, 81 insertions(+), 111 deletions(-)

-- 
2.53.0


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

end of thread, other threads:[~2026-03-13 10:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12  8:19 [PATCH v3 0/4] iio: accel: convert to guard(mutex) Rajveer Chaudhari
2026-03-12  8:19 ` [PATCH v3 1/4] iio: accel: bmc150: " Rajveer Chaudhari
2026-03-12 14:19   ` Andy Shevchenko
2026-03-12 16:27     ` Rajveer Chaudhari
2026-03-12 16:47       ` Waqar Hameed
2026-03-12 17:31         ` Rajveer Chaudhari
2026-03-13 10:28           ` Waqar Hameed
2026-03-13 10:48             ` Rajveer Chaudhari
2026-03-13  8:56       ` Andy Shevchenko
2026-03-12  8:19 ` [PATCH v3 2/4] iio: accel: mma8452: " Rajveer Chaudhari
2026-03-12  8:19 ` [PATCH v3 3/4] iio: accel: mma9551: " Rajveer Chaudhari
2026-03-12  8:19 ` [PATCH v3 4/4] iio: accel: sca3000: " Rajveer Chaudhari

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