]> git.baikalelectronics.ru Git - kernel.git/commit
HID: nintendo: add support for reading user calibration
authorDaniel J. Ogorchock <djogorchock@gmail.com>
Sat, 11 Sep 2021 17:36:35 +0000 (13:36 -0400)
committerJiri Kosina <jkosina@suse.cz>
Wed, 27 Oct 2021 08:05:52 +0000 (10:05 +0200)
commitd25d00fea80e641f62b5428c6dac7c9bbdd3397e
tree9fdc1f3a2fd5884a05f5ed2c0ea9b4c0ee42be82
parentc4ec8473e1735ed3c3a6e83b5abf0abde973bede
HID: nintendo: add support for reading user calibration

If the controller's SPI flash contains user stick calibration(s), they
should be prioritized over the factory calibrations. The user
calibrations have 2 magic bytes preceding them. If the bytes are the
correct magic values, the user calibration is used.

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