HID: hid-steam: Add Deck IMU support
authorMax Maisel <mmm-1@posteo.net>
Sat, 20 Apr 2024 12:34:18 +0000 (12:34 +0000)
committerJiri Kosina <jkosina@suse.com>
Mon, 6 May 2024 21:10:00 +0000 (23:10 +0200)
commit3347e1654f24dbbd357ea4e3c0d8dcc12d8586c7
tree52db70006e031392ef8f16b44ad9c869c55ba63b
parent3e78a6c0d3e02e4cf881dc84c5127e9990f939d6
HID: hid-steam: Add Deck IMU support

The Deck's controller features an accelerometer and gyroscope which
send their measurement values by default in the main HID input report.
Expose both sensors to userspace through a separate evdev node as it
is done by the hid-nintendo and hid-playstation drivers.

Signed-off-by: Max Maisel <mmm-1@posteo.net>
Reviewed-by: Vicki Pfau <vi@endrift.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-steam.c