Skip to contentSkip to conversation

Input: docs: Fix the input_event struct documentation

PATCH Applied Maud Spierings 2 participants 2 messages Nov 10, 2024 – Nov 27, 2024

Subsystems (3)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: docs: Fix the input_event struct documentation

Fix the datatype of the value field of the input_event struct which is signed instead of unsigned.
See include/uapi/linux/input.h

---
 Documentation/input/input.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/input/input.rst +1 -1
index 2c67fa904adcf902cebf8e7137c0a1609d879a50..d9a6de87d02de5301500b392191ab67e7db431ed 100644
@@ -264,7 +264,7 @@ events on a read. Their layout is::
 	    struct timeval time;
 	    unsigned short type;
 	    unsigned short code;
-	    unsigned int value;
+	    int value;
     };
 
 ``time`` is the timestamp, it returns the time at which the event happened.

---
base-commit: de2f378f2b771b39594c04695feee86476743a69
change-id: 20241110-fix_input_doc-1debf7bcd9c5

Best regards,

Signature · 1 line
Maud Spierings <[email protected]>
maintainer Applied
#1 lore raw
Quoted 7 lines · On Sun, Nov 10, 2024 at 07:05:02PM +0100, Maud Spierings via B4 Relay wrote:

From: Maud Spierings <[email protected]>

Fix the datatype of the value field of the input_event struct which is signed instead of unsigned.
See include/uapi/linux/input.h

Applied, thank you.

Signature · 1 line
Dmitry