input: Documentation: corrections for input.rst

Fix grammar, punctuation, and spelling.

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: linux-doc@vger.kernel.org
Link: https://lore.kernel.org/r/20210302223523.20130-2-rdunlap@infradead.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
This commit is contained in:
Randy Dunlap 2021-03-02 14:35:16 -08:00 committed by Jonathan Corbet
parent 0b54c2e34b
commit d1c34bb205
1 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ Introduction
Architecture Architecture
============ ============
Input subsystem a collection of drivers that is designed to support Input subsystem is a collection of drivers that is designed to support
all input devices under Linux. Most of the drivers reside in all input devices under Linux. Most of the drivers reside in
drivers/input, although quite a few live in drivers/hid and drivers/input, although quite a few live in drivers/hid and
drivers/platform. drivers/platform.
@ -50,7 +50,7 @@ will be available as a character device on major 13, minor 63::
crw-r--r-- 1 root root 13, 63 Mar 28 22:45 mice crw-r--r-- 1 root root 13, 63 Mar 28 22:45 mice
This device usually created automatically by the system. The commands This device is usually created automatically by the system. The commands
to create it by hand are:: to create it by hand are::
cd /dev cd /dev
@ -180,7 +180,7 @@ whole suite. It handles all HID devices, and because there is a very
wide variety of them, and because the USB HID specification isn't wide variety of them, and because the USB HID specification isn't
simple, it needs to be this big. simple, it needs to be this big.
Currently, it handles USB mice, joysticks, gamepads, steering wheels Currently, it handles USB mice, joysticks, gamepads, steering wheels,
keyboards, trackballs and digitizers. keyboards, trackballs and digitizers.
However, USB uses HID also for monitor controls, speaker controls, UPSs, However, USB uses HID also for monitor controls, speaker controls, UPSs,
@ -268,7 +268,7 @@ events on a read. Their layout is::
}; };
``time`` is the timestamp, it returns the time at which the event happened. ``time`` is the timestamp, it returns the time at which the event happened.
Type is for example EV_REL for relative moment, EV_KEY for a keypress or Type is for example EV_REL for relative movement, EV_KEY for a keypress or
release. More types are defined in include/uapi/linux/input-event-codes.h. release. More types are defined in include/uapi/linux/input-event-codes.h.
``code`` is event code, for example REL_X or KEY_BACKSPACE, again a complete ``code`` is event code, for example REL_X or KEY_BACKSPACE, again a complete