]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: leds: dynamically allocate LED groups
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 13 Jul 2016 16:06:00 +0000 (18:06 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 5 Aug 2016 11:39:15 +0000 (13:39 +0200)
commit0c315cf45866c283a36917aa3d8cfd86c2d236ae
tree1132bcbeec19d5d9b19aa5baf80346c2c179d100
parent418edee9bb596da6da407507db9a5d6d408f716e
HID: wacom: leds: dynamically allocate LED groups

We need to add an action to ensure wacom->led.groups is null when
wacom_led_control() gets called after the resources has been freed.

This also prevents to send a LED command when there is no support
from the device.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom.h
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c