Re: [PATCH] iio: accel: msa311: use devm_mutex_init()
From: Jonathan Cameron
Date: Sun Nov 22 2026 - 15:33:32 EST
On Sun, 15 Nov 2026 09:25:57 +0530
Arnav Kapoor <kapoorarnav43@xxxxxxxxx> wrote:
> On Sat, Nov 14, 2026 at 06:01:29PM -0800, Niloy Meharchandani wrote:
> > Initialize msa311->lock via devm_mutex_init() instead of mutex_init()
> > in msa311_probe() and propagate any initialization error. Include
> > <linux/mutex.h> explicitly.
>
> Reviewed-by: Arnav Kapoor <kapoorarnav43@xxxxxxxxx>
>
Applied, but Niloy, these are low value so I'd suggest
moving on to something else for next patch!
I normally only take these form new contributors or when someone
is already touching the surrounding code. It isn't worth
the churn to take them otherwise.
Thanks,
Jonathan