commit | 218e95e9769b8335defc09b04244a78546cfb1e0 | [log] [tgz] |
---|---|---|
author | Alison Schofield <amsfield22@gmail.com> | Sat Oct 15 22:00:53 2016 -0700 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Oct 23 19:34:07 2016 +0100 |
tree | 5bcf795b8c218c4c6f1123b6855d592627dd23cd | |
parent | d62e5fee88e26044a48d4b5632c4f89936041d92 [diff] |
iio: light: ltr501: claim direct mode during select 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 required raw read cases. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Acked-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>