sensor: vcnl36825t: fix: Address CID 347083

Coverity found this legitimate issue: the datasheet specifies PS_IT
being 2-bits long (1, 2, 4, 8) and this driver assumes more steps are
available. Remove extraneous fields so the Proximity integration
setting fits in the expected 16-bit value.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
This commit is contained in:
Luis Ubieda 2024-06-18 10:28:47 -04:00 committed by Anas Nashif
commit 51ad3d34bd
4 changed files with 5 additions and 29 deletions

View file

@ -914,7 +914,7 @@ test_i2c_vishay_vcnl36825t: vcnl36825t@81 {
compatible = "vishay,vcnl36825t";
reg = <0x81>;
proximity-it = "3.5";
proximity-it = "1";
multi-pulse = <8>;
low-power;