]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: redragon: fix num lock and caps lock LEDs
authorRobert Munteanu <rombert@apache.org>
Tue, 19 Jun 2018 08:20:40 +0000 (11:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:47:02 +0000 (09:47 +0200)
commite496c9a4c17d4a97ed8d222f368f3b8ad8133fb9
tree3bace1d671f3dd17fc54487ad3806694a3f9c7e5
parent838ddbf08cc724778431c927aa0f8c2c2ad4501e
HID: redragon: fix num lock and caps lock LEDs

commit dc9b8e85ed95cbe7e3ad0eabb5b48d617bbc365e upstream.

The redragon asura keyboard registers two input devices. The initial commit
85455dd906d5 ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard")
considered this an error and prevented one of the devices from registering.
However, once this is done the num lock and caps lock leds no longer toggle on
and off, although the key functionality is not affected.

This commit removes the code that prevents the input device
registration and restores the num lock and caps lock LEDs.

Fixes: 85455dd906d5 ("HID: redragon: Fix modifier keys for Redragon Asura Keyboard")
Signed-off-by: Robert Munteanu <rombert@apache.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-redragon.c