]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: remove warning while disconnecting devices
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 20 Jan 2017 15:20:12 +0000 (16:20 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 23 Jan 2017 10:00:13 +0000 (11:00 +0100)
commitf7a3858d54c6bce8902d7aec938175604e209ade
tree61a1ddd65c1bf40258af481c3b15a235c96e7b82
parent5221d1622f002ffd4722f05082868d7608162f00
HID: wacom: remove warning while disconnecting devices

When the LED class gets removed, it actually tries to reset the LED.
However, the device being disconnected, the set_report fails.

Previously, the attempt to cut lose this last event was through unsetting
the HID drvdata, but it was not working properly. Simply reset the LED
groups to NULL makes a more efficient solution.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c