summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMaxwell Doose <m32285159@gmail.com>2026-06-01 02:38:28 +0300
committerJonathan Cameron <jic23@kernel.org>2026-06-03 16:54:08 +0300
commiteb60a24b35bfb9e85a272e561379833e49a12a79 (patch)
treeebb6ee3851df1a9703b098413704d184197c2d28 /scripts/Makefile.thinlto
parentb1d1bfa26c661ad18a37456a3153b8f15826e0ad (diff)
downloadlinux-eb60a24b35bfb9e85a272e561379833e49a12a79.tar.xz
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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions