iio: accel: bma180: use iio helper function to guarantee direct mode
authorAlison Schofield <amsfield22@gmail.com>
Mon, 25 Jul 2016 19:11:20 +0000 (12:11 -0700)
committerJonathan Cameron <jic23@kernel.org>
Mon, 15 Aug 2016 16:12:43 +0000 (17:12 +0100)
commitb75b58b46b7cfd9c8e715bb3eada9e3892d217e2
tree7fcab9983a179308368b61f4dcd3272fa1eb6fea
parentca1902ff98bcd9fe655028b19573e436fe9d3c76
iio: accel: bma180: 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/accel/bma180.c