aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/iio/humidity
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2019-10-23 11:26:34 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-11-02 14:36:33 +0000
commita7bddfe2dfce1d8859422124abe1964e0ecd386e (patch)
tree28d123087bb65e22e8f4ebde626370e31b930ff0 /drivers/iio/humidity
parentstaging: rts5208: Eliminate the use of Camel Case in file sd.h (diff)
downloadwireguard-linux-a7bddfe2dfce1d8859422124abe1964e0ecd386e.tar.xz
wireguard-linux-a7bddfe2dfce1d8859422124abe1964e0ecd386e.zip
iio: dln2-adc: fix iio_triggered_buffer_postenable() position
The iio_triggered_buffer_postenable() hook should be called first to attach the poll function. The iio_triggered_buffer_predisable() hook is called last (as is it should). This change moves iio_triggered_buffer_postenable() to be called first. It adds iio_triggered_buffer_predisable() on the error paths of the postenable hook. For the predisable hook, some code-paths have been changed to make sure that the iio_triggered_buffer_predisable() hook gets called in case there is an error before it. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/humidity')
0 files changed, 0 insertions, 0 deletions