Re: [PATCH v3 0/3] iio: accel: convert to guard(mutex)
From: Jonathan Cameron
Date: Sat Mar 07 2026 - 05:26:43 EST
On Sat, 7 Mar 2026 15:47:55 +0530
Rajveer Chaudhari <rajveer.chaudhari.linux@xxxxxxxxx> wrote:
> This series converts manual mutex_lock/mutex_unlock pairs to
> guard(mutex) in three ADXL accelerometer drivers. Each conversion
> also simplifies error handling by removing goto labels and
> returning directly where possible.
>
> v3: Remove remaining goto labels completely as requested by David Lechner.
> Return directly from functions where ret variable is not needed.
> v2: Split into one patch per driver as requested by David Lechner.
> Ensured each conversion also simplifies code flow.
>
> Rajveer Chaudhari (3):
> iio: accel: adxl313: convert to guard(mutex)
> iio: accel: adxl355: convert to guard(mutex)
> iio: accel: adxl372: convert to guard(mutex)
>
> drivers/iio/accel/adxl313_core.c | 15 ++----
> drivers/iio/accel/adxl355_core.c | 81 ++++++++++++++------------------
> drivers/iio/accel/adxl372.c | 16 +++----
> 3 files changed, 45 insertions(+), 67 deletions(-)
>
Hi Rajveer,
Small process thing. Please send each new version as a separate email
thread. It can get very hard to follow when we end up with deeply
nested threads so most areas of the kernel prefer to just associate
them via name of the thread and possibly a link in the cover letter
to the previous version.
Jonathan