diff mbox

[U-Boot,1/6] input: Save keyboard's LED state to correct place

Message ID 1447335186-27731-1-git-send-email-bmeng.cn@gmail.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng Nov. 12, 2015, 1:33 p.m. UTC
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>
---

 drivers/input/input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Nov. 12, 2015, 7:57 p.m. UTC | #1
On 12 November 2015 at 06:33, Bin Meng <bmeng.cn@gmail.com> wrote:
> 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>
> ---
>
>  drivers/input/input.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass Nov. 14, 2015, 2:05 a.m. UTC | #2
Applied to u-boot-dm, thanks!
diff mbox

Patch

diff --git a/drivers/input/input.c b/drivers/input/input.c
index bf1acdc..79edda5 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -268,7 +268,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)