]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7124: use guard(mutex) to simplify return paths
authorDavid Lechner <dlechner@baylibre.com>
Thu, 11 Sep 2025 21:42:02 +0000 (16:42 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 13 Sep 2025 13:38:42 +0000 (14:38 +0100)
commitd904b8e6d4efadbcb4a4a0e077850cabbee513ed
treed0faf0aef6703068f2014147ced931143d19f227
parent1b4956cac19bb8bc9cf97ee8d3a7d5ee27871c7b
iio: adc: ad7124: use guard(mutex) to simplify return paths

Use guard(mutex) in a couple of functions to allow direct returns. This
simplifies the code a bit and will make later changes easier.

cleanup.h was already included for prior use of __free()

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7124.c