summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorAldo Conte <aldocontelk@gmail.com>2026-05-22 14:34:14 +0200
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:48 +0100
commit0e6a62767a1235b1b52e9faaf6c916a4c786a3df (patch)
tree931c0caed6412847f822d4b9e05f1a6f4720dd0a /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent6283163e2a5c70e8d9d8d34df8b8a6d81507e966 (diff)
iio: tcs3472: convert remaining locking to guard(mutex)
Convert several functions to use guard(mutex)() This avoids manual unlock calls on each return path, drops the goto in tcs3472_write_event(), and removes 'ret' variables only needed to return after the unlock. While the conversion is in progress, take the opportunity to make a few small cleanups that guard() enables: - In tcs3472_read_event_config(), replace '!!(...)' with '(...) ? 1 : 0' for readability. - In tcs3472_write_event_config(), tcs3472_powerdown() and tcs3472_resume() use an early return on the I2C write failure path. No functional change. Signed-off-by: Aldo Conte <aldocontelk@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions