summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEthan Tidmore <ethantidmore06@gmail.com>2026-02-23 06:40:11 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-02-24 00:08:45 +0300
commit34be156c88080ce1a58d44e409e3ac41ced572c1 (patch)
treed716811f1dabda2dcda31de467b4c9d5a9c64eb3 /include/linux
parentc99ccbba912c859fd579fe3a00071adc5fd0236d (diff)
downloadlinux-34be156c88080ce1a58d44e409e3ac41ced572c1.tar.xz
iio: light: gp2ap020a00f: simplify locking with guard()
Use the guard() cleanup handler to manage the device lock. This simplifies the code by removing the need for manual unlocking and goto error handling paths. Suggested-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions