Skip to content
Commit 4d9b0413 authored by Alison Schofield's avatar Alison Schofield Committed by Jonathan Cameron
Browse files

iio: accel: mma8452: claim direct mode during raw reads



Driver was checking for direct mode but not locking it.  Use
claim/release helper functions to guarantee the device stays
in direct mode during raw reads.

Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 4e2cf0e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment