[PATCH v3 0/4] iio: accel: convert to guard(mutex)

Rajveer Chaudhari posted 4 patches 3 weeks, 5 days ago
There is a newer version of this series
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(-)
[PATCH v3 0/4] iio: accel: convert to guard(mutex)
Posted by Rajveer Chaudhari 3 weeks, 5 days ago
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