]> git.baikalelectronics.ru Git - kernel.git/commit
iio: chemical: atlas-ph-sensor: fix iio_triggered_buffer_predisable() position
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 20 Sep 2019 07:31:22 +0000 (10:31 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Oct 2019 07:53:34 +0000 (08:53 +0100)
commit0e289b616faa44d6a58ddde93775014901e4fc48
treeabe3f1d1d1ece35d93048d2ab50e5a70fee4698e
parent2a566db6e3236ca2ee0d4fd9ecd6a96d9db2251b
iio: chemical: atlas-ph-sensor: fix iio_triggered_buffer_predisable() position

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

The iio_triggered_buffer_predisable() should be called last, to detach the
poll func after the devices has been suspended.

The position of iio_triggered_buffer_postenable() is correct.

Note this is not stable material. It's a fix in the logical
model rather fixing an actual bug.  These are being tidied up
throughout the subsystem to allow more substantial rework that
was blocked by variations in how things were done.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/atlas-ph-sensor.c