Skip to content

Commit

Permalink
iio: accel: adxl367: Use automated cleanup for locks and iio direct m…
Browse files Browse the repository at this point in the history
…ode.

Switching to the iio_device_claim_direct_scoped() for state
and to guard() based unlocking of mutexes simplifies error handling
by allowing direct returns when an error is encountered.

Reviewed-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
jic23 committed Feb 17, 2024
1 parent 366328e commit eabc6b0
Showing 1 changed file with 118 additions and 179 deletions.
Loading

0 comments on commit eabc6b0

Please sign in to comment.