commit | 0ada09bc35a2e1483f022cedd25f7e4a4190341e | [log] [tgz] |
---|---|---|
author | David Lechner <dlechner@baylibre.com> | Thu Oct 24 11:12:10 2024 -0500 |
committer | Peter Zijlstra <peterz@infradead.org> | Fri Oct 25 09:58:41 2024 +0200 |
tree | 5216ded1b74e81d1f7f8271e6fe9d9aede22ddab | |
parent | ca8fbaf072928391f51fed70209fb0e8baf1e85a [diff] |
iio: adc: ad7380: use if_not_guard for claim direct Replace usage of iio_device_claim_direct_scoped() with if_not_guard(). This makes fewer lines of code, less indentation, avoids having the error return statement in the macro args, and avoids needing to use unreachable(). Signed-off-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20241024-cleanup-if_not_guard-v2-1-1bef98c9fd2e@baylibre.com