commit | 4de43d250672ae9f34ed4d9279235807ca4d66d3 | [log] [tgz] |
---|---|---|
author | Akinobu Mita <akinobu.mita@gmail.com> | Fri Jul 21 00:24:25 2017 +0900 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Aug 20 15:41:16 2017 +0100 |
tree | ba0ae32173fc3bf96cb5b3cdcd08d88fe1c90136 | |
parent | 4128e8de26a354a3b595e537bfbf32c290b0b7f0 [diff] |
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>