iio: light: vcnl4000: Add calibration bias for 4040/4200
authorAstrid Rost <astrid.rost@axis.com>
Tue, 13 Jun 2023 13:50:24 +0000 (15:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 20 Jul 2023 18:21:29 +0000 (19:21 +0100)
commitbb33e75149886ec13cc5c54951eb3a92d1a99b42
treed2afe341c425ec871639e52ccb7b681fd0bf72dc
parentadd9846676600b35e1bbb6bbc2703746687ae4ec
iio: light: vcnl4000: Add calibration bias for 4040/4200

The calibration bias is setting the LED current to change the detection
distance. Add read/write attribute for proximity calibration bias and
read attribute for available values. This is supported for vcnl4040 and
vcnl4200.

Signed-off-by: Astrid Rost <astrid.rost@axis.com>
Link: https://lore.kernel.org/r/20230613135025.2596641-9-astrid.rost@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c