HID: quirks: Allow inverting the absolute X/Y values
authorAlistair Francis <alistair@alistair23.me>
Wed, 8 Dec 2021 12:40:43 +0000 (22:40 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:16 +0000 (10:54 +0100)
commitd698e024be2ea5bb4f441e0b07f82def42d6a168
tree42a196afa2064ff14b192434ca382b0a48765279
parent59f03633463fba869cab90cad0540fb48312102f
HID: quirks: Allow inverting the absolute X/Y values

[ Upstream commit fd8d135b2c5e88662f2729e034913f183455a667 ]

Add a HID_QUIRK_X_INVERT/HID_QUIRK_Y_INVERT quirk that can be used
to invert the X/Y values.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
[bentiss: silence checkpatch warning]
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20211208124045.61815-2-alistair@alistair23.me
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-input.c
include/linux/hid.h