]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ad7476: use iio helper function to guarantee direct mode
authorAlison Schofield <amsfield22@gmail.com>
Tue, 24 May 2016 19:18:06 +0000 (12:18 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 May 2016 18:34:40 +0000 (19:34 +0100)
commit1098699ad83ef8c1d58297dfa4a1c57b53c726bb
treef992236ca7cc200857ee4f86862dee101174fd9f
parent9fc010748ab486ab7b95cd586e2d2959d8db89c1
iio: adc: ad7476: use iio helper function to guarantee direct mode

Replace the code that guarantees the device stays in direct mode
with iio_device_claim_direct_mode() which does same.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7476.c