HID: playstation: correct DualSense gyro bias handling.
authorRoderick Colenbrander <roderick@gaikai.com>
Fri, 6 Jan 2023 01:59:10 +0000 (17:59 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Jan 2023 09:12:49 +0000 (10:12 +0100)
commit6f7dbbd5a9d7954971ff42098658a134470ff6c2
tree972ba2d46075fac10f8aac310305cf9cd03a9d04
parent12b18bc2b4318e76d9fecb674e377c2c388d3dd4
HID: playstation: correct DualSense 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