diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2017-07-21 00:24:25 +0900 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2017-08-20 15:41:16 +0100 |
commit | 4de43d250672ae9f34ed4d9279235807ca4d66d3 (patch) | |
tree | ba0ae32173fc3bf96cb5b3cdcd08d88fe1c90136 /drivers/hv | |
parent | 4128e8de26a354a3b595e537bfbf32c290b0b7f0 (diff) | |
download | op-kernel-dev-4de43d250672ae9f34ed4d9279235807ca4d66d3.zip op-kernel-dev-4de43d250672ae9f34ed4d9279235807ca4d66d3.tar.gz |
iio: adc: ti-ads1015: use devm_iio_triggered_buffer_setup
Use devm_iio_triggered_buffer_setup to simplify the error path in the
probe() and remove() function.
This changes the remove order, but the end result of remove function
actually does the reverse of probe.
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>
Diffstat (limited to 'drivers/hv')
0 files changed, 0 insertions, 0 deletions