]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: light: veml6030: add support for veml7700
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Mon, 7 Oct 2024 20:36:38 +0000 (22:36 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 15 Oct 2024 17:59:51 +0000 (18:59 +0100)
commitddbcee9ff1cfb3b3eb89e2d3a9fcf6d9351f2c39
tree19da82ef4d2eaa4973682f61975c57ab45458ef8
parent2fda7ef9ebb52f20097fb38c6832b7a836d4bd0d
iio: light: veml6030: add support for veml7700

The veml7700 contains the same sensor as the veml6030 in a different
package with no interrupt line and no pin to select the I2C address.

To handle the lack of the interrupt line and profit from the existing
support for the veml6030, add a specific iio_chan_spec with no
(num_)event_spec(s), and register the device's info from the
veml6030_info_no_irq struct.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241007-veml7700-v1-3-fb85dd839d63@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml6030.c