staging: iio: ad7192: use iio_device_{claim|release}_direct_mode()
authorAlison Schofield <amsfield22@gmail.com>
Wed, 9 Mar 2016 19:30:43 +0000 (11:30 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Mar 2016 18:09:54 +0000 (18:09 +0000)
commit1c118b7230a16cb627061de9bd548ed7fdbdad24
tree0795554055414156f6049da894c1da27b8532ac7
parent08a33805518e7845486f88287e8aace6f8439391
staging: iio: ad7192: use iio_device_{claim|release}_direct_mode()

Replace the code that guarantees the device stays in direct mode with
iio_device_{claim|release}_direct_mode() which does same.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7192.c