Input: LEDs - skip unnamed LEDs
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Jul 2015 21:56:39 +0000 (14:56 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Jul 2015 16:11:01 +0000 (09:11 -0700)
commitb38ebd1d4b6656582b8c16358bb88d059d28b794
tree0e7effd682f1ee6ae784bcdc05d5104d82df4a67
parent968491709e5b1aaf429428814fff3d932fa90b60
Input: LEDs - skip unnamed LEDs

Devices may declare more LEDs than what is known to input-leds
(HID does this for some devices). Instead of showing ugly warnings
on connect and, even worse, oopsing on disconnect, let's simply
ignore LEDs that are not known to us.

Reported-and-tested-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-leds.c