diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2019-09-20 11:35:13 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-10-07 21:31:19 +0100 |
commit | 3cfd6464fe23deb45bb688df66184b3f32fefc16 (patch) | |
tree | b66e5f8050d0971967a0f8e4ce40556c0bcef6c4 /drivers/counter | |
parent | 2c3d0c9ffd24d9b4c62c5dfb2104695a614be28c (diff) | |
download | linux-3cfd6464fe23deb45bb688df66184b3f32fefc16.tar.gz linux-3cfd6464fe23deb45bb688df66184b3f32fefc16.tar.bz2 linux-3cfd6464fe23deb45bb688df66184b3f32fefc16.zip |
iio: proximity: sx9500: fix iio_triggered_buffer_{predisable,postenable} positions
The iio_triggered_buffer_predisable() should be called last, to detach the
poll func after the devices has been suspended.
This change re-organizes things a bit so that the postenable & predisable
are symmetrical. It also converts the preenable() to a postenable().
Not stable material as there is no known problem with the current
code, it's just not consistent with the form we would like all the
IIO drivers to adopt so as to allow subsystem wide changes.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/counter')
0 files changed, 0 insertions, 0 deletions