iio: adc: ti-ads1015: add helper to set conversion mode
authorAkinobu Mita <akinobu.mita@gmail.com>
Thu, 20 Jul 2017 15:24:24 +0000 (00:24 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 20 Aug 2017 14:41:15 +0000 (15:41 +0100)
commit4128e8de26a354a3b595e537bfbf32c290b0b7f0
tree9a9536bd609249d33bae57e5c8e54cad0086b863
parent56b57a9eb853a5d1fc31d755b0b000c4bb4b1a2d
iio: adc: ti-ads1015: add helper to set conversion mode

This adds a helper function to set conversion mode as there are a fair
number of users.

Cc: Daniel Baluta <daniel.baluta@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads1015.c