iio: light: tcs3472: support out-of-threshold events
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 26 Jun 2017 15:44:55 +0000 (00:44 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Sep 2017 17:10:29 +0000 (18:10 +0100)
commit9d2f715d592eb4d0e643f6219f4a160fbd62934d
tree7d774a3969173058fc13fef05672ad9d92fc3c0f
parent1405ddfbf10a4e3475babf533fca5f5f60dba2c8
iio: light: tcs3472: support out-of-threshold events

The TCS3472 device provides interrupt signal for out-of-threshold events
with persistence filter.

This change adds interrupt support for the threshold events and enables
to configure the period of time by persistence filter.

Cc: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tcs3472.c