iio: light: ltr390: Add ALS channel and support for gain and resolution
authorAbhash Jha <abhashkumarjha123@gmail.com>
Wed, 14 Aug 2024 11:31:33 +0000 (17:01 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Aug 2024 14:38:14 +0000 (15:38 +0100)
commit14e0d914a855f9ad2669c0a2ed35f0003f771be5
treeca36024002da74aff1e239c806f1d71411847f86
parent0a2d94e9fcc0f88cbeac01b3b0368c4deb7e9535
iio: light: ltr390: Add ALS channel and support for gain and resolution

Add new ALS channel and allow reading lux and scale values.
Also provide gain and resolution configuration for ALS channel.
Add automatic mode switching between the UVS and ALS channel
based on which channel is being accessed.
The default mode in which the sensor start is ALS mode.

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