diff options
author | Mårten Lindahl <marten.lindahl@axis.com> | 2024-01-15 12:44:36 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-02-17 17:16:09 +0100 |
commit | 44b90383453c6664b119ec985e70f87c90e050f1 (patch) | |
tree | e823351084d03603c7fcdd48da66424feb585619 /drivers/extcon | |
parent | iio: adc: ad_sigma_delta: allow overwriting the IRQ flags (diff) | |
download | linux-44b90383453c6664b119ec985e70f87c90e050f1.tar.xz linux-44b90383453c6664b119ec985e70f87c90e050f1.zip |
iio: light: vcnl4000: Set ps high definition for 4040/4200
The vcnl4040/vcnl4200 proximity sensor defaults to 12 bit data
resolution, but the chip also supports 16 bit data resolution, which is
called proximity high definition (PS_HD).
Make the vcnl4040/vcnl4200 proximity sensor use the high definition for
all data readings. Please note that in order to preserve the 12 bit
integer part of the in_proximity_raw output, the format is changed from
integer to fixed point.
Signed-off-by: Mårten Lindahl <marten.lindahl@axis.com>
Link: https://lore.kernel.org/r/20231221-vcnl4000-ps-hd-v3-1-6dcc889372be@axis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/extcon')
0 files changed, 0 insertions, 0 deletions