OSDN Git Service

iio: adxl372: fix iio_triggered_buffer_{pre,post}enable positions
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 29 May 2019 13:01:08 +0000 (16:01 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 Jun 2019 20:06:45 +0000 (21:06 +0100)
commit0e4f0b42f42d88507b48282c8915f502551534e4
tree25dd6072faf606ee7d2a8e9ffc6c69ef4340f58b
parent4b65e3ba97ca1a8ad487a40fe2be807bea324d10
iio: adxl372: 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>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl372.c