iio: adc: ad7793: use iio helper function to guarantee direct mode
authorAlison Schofield <amsfield22@gmail.com>
Mon, 18 Jul 2016 19:35:24 +0000 (12:35 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 24 Jul 2016 18:58:41 +0000 (19:58 +0100)
commitb4d46409d603ab041bcb1ac9858d076d29e78af8
tree1580fa521ab1b104f87c3ccd465ae745c3d6658c
parent4d19c487555e8fe6e40f645c17e12cc30d4a18bf
iio: adc: ad7793: 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>
Cc: Daniel Baluta <daniel.baluta@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ad7793.c