HID: playstation: correct DualShock4 gyro bias handling.
authorRoderick Colenbrander <roderick@gaikai.com>
Fri, 6 Jan 2023 01:59:09 +0000 (17:59 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Jan 2023 09:12:20 +0000 (10:12 +0100)
commit12b18bc2b4318e76d9fecb674e377c2c388d3dd4
tree750e2f96af403019b35ff10a445a88b5d80dc39e
parent5e25a8cdbe93c50f743e2ff0907996c697347864
HID: playstation: correct DualShock4 gyro bias handling.

The bias for the gyroscope is not used correctly. The sensor bias
needs to be used in calculation of the 'sensivity' instead of being
an offset.

In practice this has little input on the values as the bias values
tends to be small (+/- 20).

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-playstation.c