]> git.baikalelectronics.ru Git - kernel.git/commit
HID: nintendo: patch hw version for userspace HID mappings
authorDaniel J. Ogorchock <djogorchock@gmail.com>
Sat, 11 Sep 2021 17:36:32 +0000 (13:36 -0400)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Oct 2021 08:05:51 +0000 (10:05 +0200)
commitf8a0b22f892fc80189fc0cfd9bd958cbf8675401
tree35d7882760c738141c6fe23a8636dfcb7f5e49e6
parent8cf53c5965eea67cd69ab671cc64e9c6ab92e8f9
HID: nintendo: patch hw version for userspace HID mappings

This patch sets the most significant bit of the hid hw version to allow
userspace to distinguish between this driver's input mappings vs. the
default hid mappings. This prevents breaking userspace applications that
use SDL2 for gamepad input, allowing them to distinguish the mappings
based on the version.

Signed-off-by: Daniel J. Ogorchock <djogorchock@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-nintendo.c