iio: adc: ad799x: use iio helper function to guarantee direct mode
authorAlison Schofield <amsfield22@gmail.com>
Tue, 24 May 2016 19:20:24 +0000 (12:20 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 May 2016 18:38:31 +0000 (19:38 +0100)
commit1bb86ecb6c03e156cdbd89978320c839e9f954b4
tree8aee882b34b178144b0bf753a1ce0be08f55e122
parent9f57e068e01c14f34f69244e1f4a6c567d93cdfe
iio: adc: ad799x: 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/ad799x.c