summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2019-10-23 11:26:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-31 12:37:19 +0100
commit07debac18a320bd85c7b0e09f5d2daef5e4d0bb9 (patch)
treee3e97deca30c42e7c7df8f78f4c3d3e3e16e9c0e /net
parent8f143cafa6f7b620923851a7c1a5442a44503b83 (diff)
iio: dln2-adc: fix iio_triggered_buffer_postenable() position
[ Upstream commit a7bddfe2dfce1d8859422124abe1964e0ecd386e ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions