iio: light: veml6070: add support for integration time
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Wed, 30 Oct 2024 23:09:58 +0000 (00:09 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Nov 2024 20:33:42 +0000 (20:33 +0000)
commitbb18885ed82359829648fd4338c18b9dd36350ed
treee11bbb43a8cbc1f63d7fe14bc1745bcedba001e5
parent4c5e18bf7590c6fd01d0a92a80b0eb92c8447ece
iio: light: veml6070: add support for integration time

The integration time of the veml6070 depends on an external resistor
(called Rset in the datasheet) and the value configured in the IT
field of the command register, whose supported values are 1/2x, 1x,
2x and 4x.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20241031-veml6070-integration-time-v4-2-c66da6788256@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/veml6070.c