diff options
| author | Chris Morgan <[email protected]> | 2024-01-19 00:19:08 -0800 |
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2024-06-07 12:29:32 -0700 |
| commit | 6560cfcfb46511d47893d6e3994ce1d3c58ddf7f (patch) | |
| tree | ddff8af596d9c90270e0837911c7e8ad66672e80 /tools/perf/scripts/python | |
| parent | 5bbcece640ef7570ca090a5b35af035fe4ecc7b1 (diff) | |
Input: adc-joystick - handle inverted axes
When one or more axes are inverted, (where min > max), normalize the
data so that min < max and invert the values reported to the input
stack.
This ensures we can continue defining the device correctly in the
device tree while not breaking downstream assumptions that min is
always less than max.
Signed-off-by: Chris Morgan <[email protected]>
Acked-by: Artur Rojek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions