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