]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/hid-sony.c
HID: sony: Make the DS4 touchpad a separate device
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Wed, 23 Nov 2016 22:07:07 +0000 (14:07 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 28 Nov 2016 13:54:57 +0000 (14:54 +0100)
commitac797b95f53276c132c51d53437e38dd912413d7
tree7c5b65fdbdc613770a5d45446a729a5919c33f56
parent4f967f6d73746f66514528cc1191025f0b5d69b3
HID: sony: Make the DS4 touchpad a separate device

The dualshock 4 supports both analog sticks of which one uses
ABS_X/_Y and a touchpad. In a recent discussion with Dmitry about
some input-mt changes we proposed for disabling pointer emulation from
input_mt_sync_frame, Dmitry mentioned ABS_X/_Y should report the
same data as ABS_MT_POSITION_X/_Y. The current driver is mixing axes
for different subdevices. It was suggested to make the touchpad
its own sub-device.

This patch turns the touchpad into its own device. In addition
this patch also moves the button underneath the touchpad into
the new device. It felt like this button should be part of the
device. No known user space application (not even SDL2) seems to
be using it.

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