]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Ignore DS4 dongle reports when no device is connected
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Fri, 9 Dec 2016 03:09:52 +0000 (19:09 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Dec 2016 14:07:37 +0000 (15:07 +0100)
commita326364764186fb3eac2db0d420b9bc6fa1f8a8c
tree9a5869dd32a4feef8e5d8ca2451ba3454a6f127f
parent2b49b9ccfa6554ad1c237f8bff69af4975502007
HID: sony: Ignore DS4 dongle reports when no device is connected

When the DS4 dongle is connected, it always generates HID reports
even when no DS4 is paired to it. This patch adds logic to ignore
HID reports from the dongle if there is no DS4 currently attached.

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