diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-03-04 10:42:19 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-04-25 16:04:19 +0100 |
commit | f3c034f6177569e1d27a7f3aaa755910201bc2d2 (patch) | |
tree | 274218f58efd0d4ff95e62c1bc13b75845e1dbff /fs/nfs_common | |
parent | 065056cb0d0ad42b04bcdfbce84cc7136f919ee6 (diff) |
iio: at91-sama5d2_adc: adjust iio_triggered_buffer_{predisable,postenable} positions
The iio_triggered_buffer_{predisable,postenable} functions attach/detach
poll functions.
In most cases the iio_triggered_buffer_postenable() should be called first
to attach the poll function, and then the driver can init the data to be
triggered.
In this case it's the other way around: the DMA code should be initialized
before the attaching the poll function and the reverse should be done when
un-initializing.
To make things easier when removing the iio_triggered_buffer_postenable() &
iio_triggered_buffer_predisable() functions from the IIO core API, the DMA
code has been moved into preenable() for init, and postdisable() for
uninit.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Reviewed-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Reviewed-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions