diff options
author | Alison Schofield <amsfield22@gmail.com> | 2017-01-21 01:11:30 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-01-21 15:21:53 +0300 |
commit | 6b2e7589b82ff534dd5c6d67dd83c53f13691bec (patch) | |
tree | 18742d56b32e64a7628b1cd2b8bd5c4e4c660241 /drivers/iio/pressure/ms5611_core.c | |
parent | 80dea21f95a4672cce545f48dc2ca500b69a2584 (diff) | |
download | linux-6b2e7589b82ff534dd5c6d67dd83c53f13691bec.tar.xz |
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: Alison Schofield <amsfield22@gmail.com>
Reviewed-by: Vlad Dogaru <ddvlad@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/pressure/ms5611_core.c')
0 files changed, 0 insertions, 0 deletions