diff options
| author | 2026-05-23 13:15:36 -0500 | |
|---|---|---|
| committer | 2026-05-31 11:01:48 +0100 | |
| commit | d2b3d461a09e0db6a6a8237db4081a32f71a04b9 (patch) | |
| tree | 1d78e6234f2ecb4172938c6bfd5806ab82bce436 /scripts/Makefile.thinlto | |
| parent | iio: tcs3472: move standalone return to default case (diff) | |
iio: chemical: sps30: Replace manual locking with RAII locking
Replace manual mutex_lock() and mutex_unlock() calls with the much newer
guard(mutex)() macro to enable RAII patterns, 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@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
