[PATCH v3 0/3] adc-joystick: Add polled support

Chris Morgan
2022-06-13T20:35:06Z

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