]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio:accel:sca3000 move to hybrid hard / soft buffer design.
authorJonathan Cameron <jic23@kernel.org>
Sat, 8 Oct 2016 16:39:06 +0000 (17:39 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 23 Oct 2016 18:34:00 +0000 (19:34 +0100)
commit2b7d56842526003ee0ff339fee11db1fea6a2134
treeb92b05c409bee89de3cee8ffb5b545ce29fbc6a4
parent8a86af99c4d7915342e9159493a93d34b258f52c
staging:iio:accel:sca3000 move to hybrid hard / soft buffer design.

In a similar fashion to other newer drivers (e.g. ti_am335x), instead
of using the hardware buffer support in IIO to directly access the hardware
fifo, insert a software fifo and feed that from the hardware one when
interrupts occur.  This gives a simpler structure to the data flows and
allows more flexibility over how often data is shipped to userspace etc.

This was also the only direct user of the simplistic generalization found
in ring_hw.h so that header is removed.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/staging/iio/accel/Kconfig
drivers/staging/iio/accel/sca3000.c
drivers/staging/iio/ring_hw.h [deleted file]