]> asedeno.scripts.mit.edu Git - linux.git/commit
iio: st_accel: fix iio_triggered_buffer_{pre,post}enable positions
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Fri, 14 Jun 2019 10:47:25 +0000 (13:47 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Jun 2019 08:24:41 +0000 (09:24 +0100)
commit05b8bcc96278c9ef927a6f25a98e233e55de42e1
treeea330b3ab50a118352ee29ff316063562cc21bb5
parent8bb0d36cbaeec31787a3062a1c433905d53afec5
iio: st_accel: 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.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Acked-by: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/st_accel_buffer.c