]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ad7298: use iio helper function to guarantee direct mode
authorAlison Schofield <amsfield22@gmail.com>
Mon, 18 Jul 2016 19:34:17 +0000 (12:34 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 24 Jul 2016 18:58:42 +0000 (19:58 +0100)
commit59f9b63283a6d398b0153e78ea556fc1ef30ea55
tree5e018760c1410a572dd6ff385eaed64ba02cc148
parent59ba1722e5a67b72b50769c11493fcf92df4c7fa
iio: adc: ad7298: 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/ad7298.c