summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_request.c
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 16:44:32 +0100
commit8679dce8c662e1c72230332812a283b23d34a9a7 (patch)
treebe7e26468653c482eda50859b4df458c6c47146b /net/bluetooth/hci_request.c
parent86b2eb94b0fc535a62f67666bab8fc4cb81a886c (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/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions