]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: vl6180: Add support for Continuous Mode
authorAbhash Jha <abhashkumarjha123@gmail.com>
Mon, 7 Oct 2024 15:22:23 +0000 (20:52 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2024 17:59:51 +0000 (18:59 +0100)
commiteeebe3937cfc7af3b4686a69432f6ae153470a9d
treeaf0d14dc799ce1018f10b66d93ca43c4c6303f3c
parent3a545861716bcee2d6715fea8d47de5f5aa0bf34
iio: light: vl6180: Add support for Continuous Mode

Added support for getting continuous readings from vl6180 using
triggered buffer approach. The continuous mode can be enabled by enabling
the buffer. Also added a trigger and appropriate checks to see that it is
used with this device.

Signed-off-by: Abhash Jha <abhashkumarjha123@gmail.com>
Link: https://patch.msgid.link/20241007152223.59008-4-abhashkumarjha123@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vl6180.c