iio: gyro: adxrs290: Add triggered buffer support
authorNishant Malpani <nish.malpani25@gmail.com>
Thu, 10 Sep 2020 18:04:48 +0000 (23:34 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Sep 2020 09:51:23 +0000 (10:51 +0100)
commit672555807f6f62c1604f866743eaedadaa557b23
treea514cd798e518ecc56c175ced35aeb025aafbfd4
parent5ac65da27ea8631d2032d47c0b9ef06c79d3446a
iio: gyro: adxrs290: Add triggered buffer support

Provide a way for continuous data capture by setting up buffer support. The
data ready signal exposed at the SYNC pin of the ADXRS290 is exploited as
a hardware interrupt which triggers to fill the buffer.

Triggered buffer setup was tested with both hardware trigger (DATA_RDY) and
software triggers (sysfs-trig & hrtimer).

Signed-off-by: Nishant Malpani <nish.malpani25@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200910180450.29696-2-nish.malpani25@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/gyro/Kconfig
drivers/iio/gyro/adxrs290.c