Skip to content

Commit

Permalink
Documentation: input: fix path to input code defnitions
Browse files Browse the repository at this point in the history
The UAPI header split failed to update the documentation in
input-programming.txt; fix things accordingly.

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
merge authored and Jonathan Corbet committed Mar 13, 2017
1 parent 1e1f780 commit 28a5c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/input/input-programming.txt
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ It's reported to the input system via:

input_report_key(struct input_dev *dev, int code, int value)

See linux/input.h for the allowable values of code (from 0 to KEY_MAX).
Value is interpreted as a truth value, ie any nonzero value means key
See uapi/linux/input-event-codes.h for the allowable values of code (from 0 to
KEY_MAX). Value is interpreted as a truth value, ie any nonzero value means key
pressed, zero value means key released. The input code generates events only
in case the value is different from before.

Expand Down

0 comments on commit 28a5c96

Please sign in to comment.