iio: pressure: mpl3115: claim direct mode during raw reads
authorAlison Schofield <amsfield22@gmail.com>
Tue, 11 Oct 2016 19:33:12 +0000 (12:33 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:33:55 +0000 (19:33 +0100)
commitac13980584d1fe2493516e1f6e839f0a3c425280
tree6f2c02a6018107ddf5c445ba6a31c15d53cdf4f2
parent79de2ee469aaef0afb25dde7d65d7fbc91600573
iio: pressure: mpl3115: 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: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/mpl3115.c