diff options
author | Alison Schofield <amsfield22@gmail.com> | 2017-01-20 12:22:58 -0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-01-21 12:31:05 +0000 |
commit | 3bc1abcddb24f55b9c251e03caa4f9bd22ff748b (patch) | |
tree | 2a0ac35a0dfb44db067bec24eaedb49bc677f7f7 /drivers/iio/dac/m62332.c | |
parent | 6b2e7589b82ff534dd5c6d67dd83c53f13691bec (diff) | |
download | linux-3bc1abcddb24f55b9c251e03caa4f9bd22ff748b.tar.bz2 |
iio: pressure: ms5611: claim direct mode during oversampling changes
Driver was checking for direct mode before changing oversampling
ratios, but was not locking it. Use the claim/release helper
functions to guarantee the device stays in direct mode while the
oversampling ratios are being updated. Continue to use the drivers
private state lock to protect against conflicting direct mode access
of the state data.
Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/dac/m62332.c')
0 files changed, 0 insertions, 0 deletions