]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iio: adc: rockchip_saradc: Add support iio buffers
authorSimon Xue <xxm@rock-chips.com>
Tue, 23 Jun 2020 23:30:11 +0000 (01:30 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jun 2020 12:09:15 +0000 (13:09 +0100)
commit4e130dc7b41348b13684f0758c26cc6cf72a3449
tree782a0447c014a77ce7fc3eef1f7a83cdb821d9e9
parent71eb7c855bd0cd168541305e3d6dab16bf0b0dfe
iio: adc: rockchip_saradc: Add support iio buffers

Add the ability to also support access via (triggered) buffers
next to the existing direct mode.

Device in question is the Odroid Go Advance that connects a joystick
to two of the saradc channels for X and Y axis and the new (and still
pending) adc joystick driver of course wants to use triggered buffers
from the iio subsystem.

Signed-off-by: Simon Xue <xxm@rock-chips.com>
[some simplifications and added commit description]
Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/rockchip_saradc.c