Re: [PATCH v5] iio: chemical: sps30: Replace manual locking with RAII locking
From: Jonathan Cameron
Date: Tue May 26 2026 - 10:57:48 EST
On Sat, 23 May 2026 13:15:36 -0500
Maxwell Doose <m32285159@xxxxxxxxx> wrote:
> Replace manual mutex_lock() and mutex_unlock() calls with the much newer
> guard(mutex)() and scoped_guard() macros to enable RAII patterns,
There isn't any scoped_guard() left in here. I'll tweak
> modernize the driver, and to increase readability.
>
> Move mutex locking into sps30_do_meas() and tune it up to use guard()(),
> as every caller takes the lock anyways.
>
> Signed-off-by: Maxwell Doose <m32285159@xxxxxxxxx>
Applied.
Thanks
Jonathan