Re: [PATCH v2 1/4] iio: accel: bmc150: convert to guard(mutex)
From: Andy Shevchenko
Date: Mon Mar 09 2026 - 12:43:15 EST
On Mon, Mar 09, 2026 at 09:04:05PM +0530, Rajveer Chaudhari 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.
Wait _at least_ 24h between the versions of the patch or patch series.
Let others give a chance to comment, review, et cetera!
So, based on the discussion in v1 it might make sense to have a sorting patches
as precursor for each of the drivers in question. But since it's indeed cosmetic
change I leave it to maintainers and other reviewers to judge.
--
With Best Regards,
Andy Shevchenko