OSDN Git Service

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)
commit152a6a884ae13400bd7c48f011acf81ef5225238
treeb92b05c409bee89de3cee8ffb5b545ce29fbc6a4
parentc19a02582b9b9b60cbeddfda2d3958ca36f9afc9
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]