summaryrefslogtreecommitdiff
path: root/drivers/devfreq
diff options
context:
space:
mode:
authorAlexandru Ardelean <alexandru.ardelean@analog.com>2020-03-04 11:42:19 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2020-04-25 18:04:19 +0300
commitf3c034f6177569e1d27a7f3aaa755910201bc2d2 (patch)
tree274218f58efd0d4ff95e62c1bc13b75845e1dbff /drivers/devfreq
parent065056cb0d0ad42b04bcdfbce84cc7136f919ee6 (diff)
downloadlinux-f3c034f6177569e1d27a7f3aaa755910201bc2d2.tar.xz
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 'drivers/devfreq')
0 files changed, 0 insertions, 0 deletions