]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: vl6180: Add configurable inter-measurement period support
authorAbhash Jha <abhashkumarjha123@gmail.com>
Mon, 7 Oct 2024 15:22:21 +0000 (20:52 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2024 17:59:51 +0000 (18:59 +0100)
commit5d64ac92c7aa9bdec81166f6f89cea423e40941d
tree1891fee54b99237c4f5f941a5e6be567c27dd1bb
parent1453ea1f2f7dab4c003dfd11e081675ed5b2ff7b
iio: light: vl6180: Add configurable inter-measurement period support

Expose the IIO_CHAN_INFO_SAMP_FREQ attribute as a way to configure the
inter-measurement period for both the IIO_DISTANCE and IIO_LIGHT
channels. The inter-measurement period must be given in milihertz.

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