iio: pressure: zpa2326: fix iio_triggered_buffer_postenable position
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 20 Sep 2019 08:03:48 +0000 (11:03 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Oct 2019 11:54:15 +0000 (12:54 +0100)
commitfe2392c67db9730d46f11fc4fadfa7bffa8843fa
tree09b53765093e1b8132b05020962d4fc4692835b4
parent97d62c345af8f3b2c99dd5c5a7d9a354969adc96
iio: pressure: zpa2326: fix iio_triggered_buffer_postenable position

The iio_triggered_buffer_{predisable,postenable} functions attach/detach
the poll functions.

The iio_triggered_buffer_postenable() should be called before (to attach
the poll func) and then the

The iio_triggered_buffer_predisable() function is hooked directly without
anything, which is probably fine, as the postenable() version seems to also
do some reset/wake-up of the device.
This will mean it will be easier when removing it; i.e. it just gets
removed.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/zpa2326.c