commit | 80dea21f95a4672cce545f48dc2ca500b69a2584 | [log] [tgz] |
---|---|---|
author | Alison Schofield <amsfield22@gmail.com> | Fri Jan 20 12:39:32 2017 -0800 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Jan 21 12:20:40 2017 +0000 |
tree | b862581cff4ad7e56196d06ea170cedb23cc4ddb | |
parent | 0bf1a2aac6c5ea30eca6d99791037a7b7abd8d76 [diff] |
iio: magnetometer: mag3110: claim direct mode during raw writes 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 writes. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>