summaryrefslogtreecommitdiff
path: root/Documentation/input/input-programming.rst
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-06-02 15:36:06 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-06-02 15:36:06 -0700
commit50fd82b3a9a9335df5d50c7ddcb81c81d358c4fc (patch)
tree07ebaa0d94a5e6159423e1f73cd012b1f0e118a5 /Documentation/input/input-programming.rst
parentbaf86ac1c9ccbde281df55a4daeefadec6d2e581 (diff)
parenta27e51b45e1bc57f15cffd6b9bfc38efef8cc419 (diff)
Merge tag 'docs-5.19-2' of git://git.lwn.net/linux
Pull documentation fixes from Jonathan Corbet: "A handful of late-arriving documentation fixes and the addition of an SVG tux logo which, I'm assured, we're going to want" * tag 'docs-5.19-2' of git://git.lwn.net/linux: documentation: Format button_dev as a pointer. docs: add SVG version of the Linux logo docs: move Linux logo into a new `images` folder docs: blockdev: change title to match section content docs/conf.py: Cope with removal of language=None in Sphinx 5.0.0
Diffstat (limited to 'Documentation/input/input-programming.rst')
-rw-r--r--Documentation/input/input-programming.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/input/input-programming.rst b/Documentation/input/input-programming.rst
index 2638dce69764..c9264814c7aa 100644
--- a/Documentation/input/input-programming.rst
+++ b/Documentation/input/input-programming.rst
@@ -85,15 +85,15 @@ accepted by this input device. Our example device can only generate EV_KEY
type events, and from those only BTN_0 event code. Thus we only set these
two bits. We could have used::
- set_bit(EV_KEY, button_dev.evbit);
- set_bit(BTN_0, button_dev.keybit);
+ set_bit(EV_KEY, button_dev->evbit);
+ set_bit(BTN_0, button_dev->keybit);
as well, but with more than single bits the first approach tends to be
shorter.
Then the example driver registers the input device structure by calling::
- input_register_device(&button_dev);
+ input_register_device(button_dev);
This adds the button_dev structure to linked lists of the input driver and
calls device handler modules _connect functions to tell them a new input