HID: sony: Add force-feedback support for the Dualshock 4
authorFrank Praznik <frank.praznik@oh.rr.com>
Sat, 11 Jan 2014 20:12:42 +0000 (15:12 -0500)
committerJiri Kosina <jkosina@suse.cz>
Thu, 16 Jan 2014 21:44:35 +0000 (22:44 +0100)
commit0bd88dd3dd5e73e5d43b8d1e7a96b841978df562
treeaeabfeb65996c7c400a240c6551edec58386d420
parent8cd5fcda24b48b162699730da7ead7329b27159e
HID: sony: Add force-feedback support for the Dualshock 4

Adds the Dualshock 4 to the HID device list and enables force-feedback.

Adds a Dualshock 4 specific worker function since the Dualshock 4 needs a
different report than the Sixaxis.

The right motor in the Dualshock 4 is variable so the full rumble value
is now passed to the worker function and clamped there if necessary.

Signed-off-by: Frank Praznik <frank.praznik@oh.rr.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-sony.c