mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
input: Save keyboard's LED state to correct place
Currently keyboard's LED state is wrongly saved to config->leds in process_modifier(). It should really be config->flags. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
91f815450f
commit
533c81a949
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ static struct input_key_xlate *process_modifier(struct input_config *config,
|
|||
if (flip != -1) {
|
||||
int leds = 0;
|
||||
|
||||
config->leds ^= flip;
|
||||
config->flags ^= flip;
|
||||
if (config->flags & FLAG_NUM_LOCK)
|
||||
leds |= INPUT_LED_NUM;
|
||||
if (config->flags & FLAG_CAPS_LOCK)
|
||||
|
|
Loading…
Add table
Reference in a new issue