[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z6lh6QC7qwuw71N9@archie.me>
Date: Mon, 10 Feb 2025 09:18:17 +0700
From: Bagas Sanjaya <bagasdotme@...il.com>
To: Brendan Connelly <brendanjconnelly17@...il.com>, corbet@....net
Cc: linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
dmitry.torokhov@...il.com
Subject: Re: [PATCH] Documentation: input: Add section pertaining to polled
input devices
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@...il.com>
--
An old man doll... just what I always wanted! - Clara
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists