Re: [PATCH v4 2/8] iio: accel: bmc150: convert to guard(mutex)
From: Linus Walleij
Date: Sun Mar 15 2026 - 19:15:52 EST
On Sat, Mar 14, 2026 at 6:07 PM Rajveer Chaudhari
<rajveer.chaudhari.linux@xxxxxxxxx> wrote:
> Replace manual mutex_lock/mutex_unlock pair with guard(mutex)
> in bmc150_accel_buffer_predisable() and
> bmc150_accel_buffer_postenable(). This ensures the mutex is
> released on all return paths and allows returning directly
> without a goto label.
>
> Signed-off-by: Rajveer Chaudhari <rajveer.chaudhari.linux@xxxxxxxxx>
This one is rather trivial and easy to review:
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Yours,
Linus Walleij