]> git.baikalelectronics.ru Git - kernel.git/commit
iio: proximity: sx9500: fix iio_triggered_buffer_{predisable,postenable} positions
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 20 Sep 2019 08:35:13 +0000 (11:35 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 7 Oct 2019 20:31:19 +0000 (21:31 +0100)
commit11fb397fa08f41d442b75732dfe2f3be57983c0b
treeb66e5f8050d0971967a0f8e4ce40556c0bcef6c4
parent97668d88b181f0edfee70a43112d257009f3b07c
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>
drivers/iio/proximity/sx9500.c