diff options
| author | Maxwell Doose <m32285159@gmail.com> | 2026-05-31 18:38:28 -0500 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-06-03 14:54:08 +0100 |
| commit | eb60a24b35bfb9e85a272e561379833e49a12a79 (patch) | |
| tree | ebb6ee3851df1a9703b098413704d184197c2d28 /scripts/dummy-tools/python3 | |
| parent | b1d1bfa26c661ad18a37456a3153b8f15826e0ad (diff) | |
iio: chemical: scd30: Replace manual locking with RAII locking
scd30_core.c currently uses manual mutex_lock() and mutex_unlock()
calls. Replace them with the newer guard(mutex)() for cleaner RAII
patterns and to improve maintainability.
Add new helper function scd30_trigger_handler_helper() containing
the critical section for scd30_trigger_handler().
In addition, small refactor to replace "?:" operator with regular
if/else returns.
Signed-off-by: Maxwell Doose <m32285159@gmail.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
