iio: proximity: lidar: switch to iio_device_claim_*_mode helpers
authorMatt Ranostay <mranostay@gmail.com>
Wed, 8 Jun 2016 04:18:04 +0000 (21:18 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sat, 11 Jun 2016 16:08:20 +0000 (17:08 +0100)
commit9e18265443d3a76462eafc3a0863c217aeaf62ac
tree460b7dab034a905f524d0e96d8b81c49f6aff258
parentbc2e1126eccb47517b9d1c685020c38600f99a3d
iio: proximity: lidar: switch to iio_device_claim_*_mode helpers

Switch from using indio_dev->mlock to the iio_device_claim_*_mode
helper functions.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c