]> git.baikalelectronics.ru Git - kernel.git/commit
iio: hdc100x: fix iio_triggered_buffer_{predisable,postenable} positions
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Wed, 23 Oct 2019 08:27:14 +0000 (11:27 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 2 Nov 2019 14:39:41 +0000 (14:39 +0000)
commit68bd9c7eff815dca2e7adfcb46d7d8c94e563148
treee06da82660fab9cd378bef1b05187f61efee2c5e
parent432890cfc383995bc37d457d9b485ee46ad86de6
iio: hdc100x: fix iio_triggered_buffer_{predisable,postenable} positions

The iio_triggered_buffer_postenable() hook should be called first to
attach the poll function and the iio_triggered_buffer_predisable() hook
should be called last in the predisable hook.

This change updates the driver to attach/detach the poll func in the
correct order.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/humidity/hdc100x.c