]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ad7606: switch mutexes to guard
authorGuillaume Stols <gstols@baylibre.com>
Tue, 2 Jul 2024 17:34:12 +0000 (17:34 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 29 Jul 2024 19:31:12 +0000 (20:31 +0100)
commit2956979dbd0d47473b41129d8fc8127ed13fd687
treeee408a117abd6d5ffda137bf328e2a522e0ad2ed
parent059fe4f8bbdf5cad212e1aeeb3e8968c80b9ff3b
iio: adc: ad7606: switch mutexes to guard

Switching to guard simplifies the code and avoids to take care to
unlock the mutex in case of premature return.

Signed-off-by: Guillaume Stols <gstols@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c