mbox series

[0/2] Allow inverted axes for adc-joystick

Message ID 20231231205643.129435-1-macroalpha82@gmail.com (mailing list archive)
Headers show
Series Allow inverted axes for adc-joystick | expand

Message

Chris Morgan Dec. 31, 2023, 8:56 p.m. UTC
From: Chris Morgan <macromorgan@hotmail.com>

Handle inverted axes in the adc-joystick driver so that reported input
events downstream from the driver conform with assumptions that
abs_min < abs_max. Add a new helper function for inputs so that abs
can be inverted that drivers can use.

Chris Morgan (2):
  Input: add input_invert_abs()
  Input: adc-joystick: Handle inverted axes

 drivers/input/input.c                 | 19 +++++++++++++++++++
 drivers/input/joystick/adc-joystick.c | 13 ++++++++++++-
 include/linux/input.h                 |  1 +
 3 files changed, 32 insertions(+), 1 deletion(-)