]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: proximity: vl53l0x-i2c: Added continuous mode support
authorAbhash Jha <abhashkumarjha123@gmail.com>
Mon, 9 Sep 2024 10:15:07 +0000 (15:45 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Sep 2024 08:21:03 +0000 (09:21 +0100)
commit762186c6e7b1dab5af1b8aa46fa0a3b1a9aaafde
tree768e5858629efdeb9fcb38237f9c71f682a7473e
parent962b48d497421954f4a1a2665113cca58362bab8
iio: proximity: vl53l0x-i2c: Added continuous mode support

The continuous mode of the sensor is enabled in the buffer_postenable.
Replaced the original irq handler with a threaded irq handler to perform
i2c reads during continuous mode.
The continuous mode is disabled by disabling the buffer.
Added a trigger for this device to be used for continuous mode.

Signed-off-by: Abhash Jha <abhashkumarjha123@gmail.com>
Link: https://patch.msgid.link/20240909101508.263085-3-abhashkumarjha123@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/proximity/vl53l0x-i2c.c