linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] adc-joystick: Add polled support
@ 2022-06-13 19:23 Chris Morgan
  2022-06-13 19:23 ` [PATCH v3 1/3] dt-bindings: adc-joystick: add adc-joystick,no-hardware-trigger Chris Morgan
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Chris Morgan @ 2022-06-13 19:23 UTC (permalink / raw)
  To: linux-input
  Cc: devicetree, contact, maccraft123mc, heiko, krzysztof.kozlowski+dt,
	robh+dt, dmitry.torokhov, Chris Morgan

From: Chris Morgan <macromorgan@hotmail.com>

Add support to the existing adc-joystick driver to support polling
rather than relying on triggered buffers. This is useful for devices
that do not offer triggered buffers in hardware. Code adapted from
changes made by Maya Matuszczyk <maccraft123mc@gmail.com>.

Changes from V2:
 - Changed parameter from "adc-joystick,polled" to
   "adc-joystick,no-hardware-trigger" as it is more representative of
   what the driver and hardware are doing.

Changes from V1:
 - Removed driver compatible string of "adc-joystick-polled".
 - Added new optional boolean value of "adc-joystick,polled".
 - Cleaned up if statements regarding polling behavior.


Chris Morgan (3):
  dt-bindings: adc-joystick: add adc-joystick,no-hardware-trigger
  Input: adc-joystick - Add polled input device support
  arm64: dts: rockchip: Update joystick to polled for Odroid-Go2

 .../bindings/input/adc-joystick.yaml          |  9 +++-
 .../boot/dts/rockchip/rk3326-odroid-go2.dts   |  1 +
 drivers/input/joystick/adc-joystick.c         | 52 +++++++++++++++----
 3 files changed, 50 insertions(+), 12 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-06-25 14:17 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-13 19:23 [PATCH v3 0/3] adc-joystick: Add polled support Chris Morgan
2022-06-13 19:23 ` [PATCH v3 1/3] dt-bindings: adc-joystick: add adc-joystick,no-hardware-trigger Chris Morgan
2022-06-15  1:50   ` Artur Rojek
2022-06-15 17:23     ` Krzysztof Kozlowski
2022-06-15 18:09       ` Chris Morgan
2022-06-13 19:23 ` [PATCH v3 2/3] Input: adc-joystick - Add polled input device support Chris Morgan
2022-06-15  1:43   ` Artur Rojek
2022-06-15 15:12     ` Chris Morgan
2022-06-18 13:08       ` Artur Rojek
2022-06-19 15:32         ` Jonathan Cameron
2022-06-19 16:31           ` Artur Rojek
2022-06-21 21:41             ` Chris Morgan
2022-06-25 14:26               ` Jonathan Cameron
2022-06-19 15:19     ` Jonathan Cameron
2022-06-13 19:23 ` [PATCH v3 3/3] arm64: dts: rockchip: Update joystick to polled for Odroid-Go2 Chris Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).