]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Support motion sensor calibration on dongle
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Tue, 7 Mar 2017 23:45:06 +0000 (15:45 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 21 Mar 2017 14:11:56 +0000 (15:11 +0100)
commit66cbcc2f9d22cbf5fce647af4036cf23234c85dc
tree0c5017bdf76ae445cecca101764d7772d14cedaf
parentb9a806173e159fcfa0af0a3261e17d55a59cf5f7
HID: sony: Support motion sensor calibration on dongle

The DualShock 4 dongle isn't connected to a real DualShock 4 at
time of driver loading. When a DualShock 4 is plugged in, we
need to obtain calibration data (the dongle would have zeros).

This patch adds calibration logic, which we schedule on a hotplug
from sony_raw_event. In addition this patch adds dongle state
handling.

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