summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMaxwell Doose <m32285159@gmail.com>2026-05-23 13:15:36 -0500
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:48 +0100
commitd2b3d461a09e0db6a6a8237db4081a32f71a04b9 (patch)
tree1d78e6234f2ecb4172938c6bfd5806ab82bce436 /include/linux
parent1ccae88c0a1023e0c9f757dc6b1fbca463b32b36 (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 'include/linux')
0 files changed, 0 insertions, 0 deletions