Skip to contentSkip to conversation

Documentation: gpio: clarify sysfs line values are logical

PATCH Applied Kent Gibson 3 participants 3 messages Feb 12, 2024 – Feb 14, 2024

Subsystems (3)
lore
Share & tools
lore

Kent Gibson

author reviewer
#0 lore raw

PATCH 1/1 Documentation: gpio: clarify sysfs line values are logical

Clarify that line values are logical, not physical, by replacing high/low terminology with active/inactive.

---
 Documentation/userspace-api/gpio/sysfs.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/userspace-api/gpio/sysfs.rst +2 -2
index e12037a0f2b4..116921048b18 100644
@@ -87,9 +87,9 @@ and have the following read/write attributes:
 		allow userspace to reconfigure this GPIO's direction.
 
 	"value" ...
-		reads as either 0 (low) or 1 (high). If the GPIO
+		reads as either 0 (inactive) or 1 (active). If the GPIO
 		is configured as an output, this value may be written;
-		any nonzero value is treated as high.
+		any nonzero value is treated as active.
 
 		If the pin can be configured as interrupt-generating interrupt
 		and if it has been configured to generate interrupts (see the
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Kent Gibson

Clarify that line values are logical, not physical, by replacing high/low terminology with active/inactive.

For this

But as I said there are much more...

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#2 lore raw
In reply to Kent Gibson
Quoted 26 lines · Kent Gibson

Clarify that line values are logical, not physical, by replacing high/low terminology with active/inactive.

---
 Documentation/userspace-api/gpio/sysfs.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/userspace-api/gpio/sysfs.rst +2 -3
index e12037a0f2b4..116921048b18 100644
@@ -87,9 +87,9 @@ and have the following read/write attributes:
                allow userspace to reconfigure this GPIO's direction.
 
        "value" ...
-               reads as either 0 (low) or 1 (high). If the GPIO
+               reads as either 0 (inactive) or 1 (active). If the GPIO
                is configured as an output, this value may be written;
-               any nonzero value is treated as high.
+               any nonzero value is treated as active.
 
                If the pin can be configured as interrupt-generating interrupt
                and if it has been configured to generate interrupts (see the
--
Quoted 2 lines

2.39.2

Applied, thanks!

Bart