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

iio: proximity: sx9500: claim direct mode during raw proximity reads



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

Signed-off-by: default avatarAlison Schofield <amsfield22@gmail.com>
Reviewed-by: default avatarVlad Dogaru <ddvlad@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 80dea21f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment