iio: light: rpr0521 triggered buffer
authorMikko Koivunen <mikko.koivunen@fi.rohmeurope.com>
Mon, 3 Jul 2017 12:50:13 +0000 (15:50 +0300)
committerJonathan Cameron <jic23@kernel.org>
Tue, 4 Jul 2017 19:46:28 +0000 (20:46 +0100)
commite12ffd241c00146665cc2355263888c0f9e2b7fd
treebf531bb3478094bb4872f86d0a03da5d8b668075
parentaab498ba12172e81b2deffda9400ebcf41e3462f
iio: light: rpr0521 triggered buffer

Set up and use triggered buffer if there is irq defined for device in
device tree. Trigger producer triggers from rpr0521 drdy interrupt line.
Trigger consumer reads rpr0521 data to scan buffer.
Depends on previous commits of _scale and _offset.

Signed-off-by: Mikko Koivunen <mikko.koivunen@fi.rohmeurope.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/rpr0521.c