]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: Don't use fw_version/hw_version for sysfs cleanup.
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Tue, 10 Nov 2020 07:22:29 +0000 (23:22 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 25 Nov 2020 12:53:32 +0000 (13:53 +0100)
commita97de6f1ee21c7072cebbd36511a3adca65887d0
tree74af6210e4a23d88777e015547aa0223f61f0757
parent0636ac6866d4546dbce10422600e8811c25c707b
HID: sony: Don't use fw_version/hw_version for sysfs cleanup.

The DS4 dongle reports fw_version and hw_version as 0 when no actual
DS4 is connected to it. This prevents cleaning up sysfs nodes upon
device remove.

This patch decouples sysfs cleanup from the fw_version and hw_version
values by introducing boolean values.

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