iio: adc: ad7923: use iio helper function to guarantee direct mode
authorAlison Schofield <amsfield22@gmail.com>
Tue, 24 May 2016 19:19:49 +0000 (12:19 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 29 May 2016 18:36:59 +0000 (19:36 +0100)
commit9f57e068e01c14f34f69244e1f4a6c567d93cdfe
treeee5498b9faea68313d728b468090cbc4182aecfe
parent6fea8a426b67455a58b59964cee905754ab77497
iio: adc: ad7923: 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/ad7923.c