]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: vl6180: Added Interrupt support for single shot access
authorAbhash Jha <abhashkumarjha123@gmail.com>
Mon, 7 Oct 2024 15:22:22 +0000 (20:52 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2024 17:59:51 +0000 (18:59 +0100)
commit3a545861716bcee2d6715fea8d47de5f5aa0bf34
tree3cd214a1c4cae5a4ea3f6b82bd0886e910dc547b
parent5d64ac92c7aa9bdec81166f6f89cea423e40941d
iio: light: vl6180: Added Interrupt support for single shot access

The interrupts are serviced in the `vl6180_measure` function when the
irq_handler signals that the reading is complete. We now can read
asynchronously if `client->irq` is set.

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