From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Brendan Connelly <brendanjconnelly17@gmail.com>, corbet@lwn.net
Cc: linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org,
dmitry.torokhov@gmail.com
Subject: Re: [PATCH] Documentation: input: Add section pertaining to polled input devices
Date: Mon, 10 Feb 2025 09:18:17 +0700 [thread overview]
Message-ID: <Z6lh6QC7qwuw71N9@archie.me> (raw)
In-Reply-To: <20250208173554.209688-1-brendanjconnelly17@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
On Sat, Feb 08, 2025 at 12:35:54PM -0500, Brendan Connelly wrote:
> +Polled input devices
> +~~~~~~~~~~~~~~~~~~~~
> +
> +Input polling is set up by passing an input device struct and a callback to
> +the function::
> +
> + int input_setup_polling(struct input_dev *dev,
> + void (*poll_fn)(struct input_dev *dev))
> +
> +Within the callback, devices should use the regular input_report_* functions
> +and input_sync as is used by other devices.
> +
> +There is also the function::
> +
> + void input_set_poll_interval(struct input_dev *dev, unsigned int interval)
> +
> +which is used to configure the interval, in milliseconds, that the device will
> +be polled at.
Looks good, thanks!
Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com>
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-02-10 2:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 17:35 Brendan Connelly
2025-02-10 2:18 ` Bagas Sanjaya [this message]
2025-02-21 20:30 ` Jonathan Corbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z6lh6QC7qwuw71N9@archie.me \
--to=bagasdotme@gmail.com \
--cc=brendanjconnelly17@gmail.com \
--cc=corbet@lwn.net \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®