diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-09-20 10:57:23 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-09-21 18:31:38 +0300 |
commit | 0fe2f2b789190661df24bb8bf62294145729a1fe (patch) | |
tree | 9fa8d99e84ec994b9ed1f9aa80a010084f0dd4f0 /COPYING | |
parent | 505ea3ada665c466d0064b11b6e611b7f995517d (diff) | |
download | linux-0fe2f2b789190661df24bb8bf62294145729a1fe.tar.xz |
iio: tcs3414: fix iio_triggered_buffer_{pre,post}enable positions
The iio_triggered_buffer_{predisable,postenable} functions attach/detach
the poll functions.
For the predisable hook, the disable code should occur before detaching
the poll func, and for the postenable hook, the poll func should be
attached before the enable code.
The driver was slightly reworked. The preenable hook was moved to the
postenable, to add some symmetry to the postenable/predisable part.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions