]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit9b58916035a6b05256aafce4c5055805b9043cda
treee06da82660fab9cd378bef1b05187f61efee2c5e
parenta7bddfe2dfce1d8859422124abe1964e0ecd386e
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