]> git.baikalelectronics.ru Git - kernel.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)
commit5559367f1e95f198c8f750189e24379ee743fa9c
tree782a0447c014a77ce7fc3eef1f7a83cdb821d9e9
parente2601e1c1164a361b603d56b6309836a16ac7df3
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