Wrong near level criterion
The near level criterion of drv-iio-poll-proximity.c
uses a 'greater-than' comparison to
determine whether an object is near or not.
The kernel documentation for in_proximity_nearlevel
states:
If the value read from the sensor is above or equal to the value in this file an object should typically be considered near.
See: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio-proximity
The proper comparison for the near level should probably be a 'greater-than-or-equal-to' comparison.