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)
commita52f238e7c808d9fd1f9dfc675f583b77156cdeb
treef992236ca7cc200857ee4f86862dee101174fd9f
parentc70df20e31595cf696c8b4f50fc7d82b69f3dd5c
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