You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.6 KiB
43 lines
1.6 KiB
2 days ago
|
From 2b0510710cdccb0c07afe5280bf45354e4f53b0b Mon Sep 17 00:00:00 2001
|
||
|
From: Philipp Jungkamp <p.jungkamp@gmx.net>
|
||
|
Date: Wed, 21 Dec 2022 12:43:49 +0100
|
||
|
Subject: [PATCH] hwdb: change definition of PROXIMITY_NEAR_LEVEL for sensors
|
||
|
|
||
|
The [kernel documentation][0] for the in_proximity_nearlevel sysfs
|
||
|
attribute on iio proximity devices 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.
|
||
|
|
||
|
Meaning a 'greater than or equal to' comparison.
|
||
|
|
||
|
Make the documentation comment in 60-sensors.hwdb suggest a
|
||
|
greater-or-equal rather than a strict greater-than comparison.
|
||
|
|
||
|
[0]: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-bus-iio-proximity
|
||
|
|
||
|
Fixes #25793
|
||
|
|
||
|
(cherry picked from commit 71a639db68b0890b1f25f4b18ddf5c4b33e1f23f)
|
||
|
|
||
|
Related: RHEL-5950
|
||
|
---
|
||
|
hwdb.d/60-sensor.hwdb | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/hwdb.d/60-sensor.hwdb b/hwdb.d/60-sensor.hwdb
|
||
|
index 39abf4db19..6c26b73060 100644
|
||
|
--- a/hwdb.d/60-sensor.hwdb
|
||
|
+++ b/hwdb.d/60-sensor.hwdb
|
||
|
@@ -45,8 +45,8 @@
|
||
|
# subsystem[1]. The default, when unset, is equivalent to:
|
||
|
# ACCEL_MOUNT_MATRIX=1, 0, 0; 0, 1, 0; 0, 0, 1
|
||
|
# eg. the identity matrix,
|
||
|
-# and <value> is an integer value above which an object is considered
|
||
|
-# close by a proximity sensor:
|
||
|
+# and <value> is an integer value above or equal to which an object is
|
||
|
+# considered close by a proximity sensor:
|
||
|
# PROXIMITY_NEAR_LEVEL=100
|
||
|
#
|
||
|
# [1]: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=dfc57732ad38f93ae6232a3b4e64fd077383a0f1
|