diff mbox

[U-Boot,15/28] input: Add a few more keyboard keycodes

Message ID 1441773171-4575-16-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Sept. 9, 2015, 4:32 a.m. UTC
The  slash and * are missing from the keycode tables. Add these so that
these keypad keys can be used.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 drivers/input/input.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Bin Meng Sept. 15, 2015, 6:12 a.m. UTC | #1
On Wed, Sep 9, 2015 at 12:32 PM, Simon Glass <sjg@chromium.org> wrote:
> The  slash and * are missing from the keycode tables. Add these so that

nits: there are two spaces before 'slash'

> these keypad keys can be used.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  drivers/input/input.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/input/input.c b/drivers/input/input.c
> index 95006a9..ec49d0f 100644
> --- a/drivers/input/input.c
> +++ b/drivers/input/input.c
> @@ -43,7 +43,7 @@ static const uchar kbd_plain_xlate[] = {
>         '8',  '9',  '-',  '4',  '5',  '6',  '+',  '1',  /* 0x40 - 0x4f */
>         '2',  '3',  '0',  '.', 0xff, 0xff, 0xff, 0xff,
>         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0x50 - 0x5F */
> -       '\r', 0xff, 0xff
> +       '\r', 0xff, '/',  '*',
>  };
>
>  static unsigned char kbd_shift_xlate[] = {
> @@ -59,7 +59,7 @@ static unsigned char kbd_shift_xlate[] = {
>         '8', '9', '-', '4', '5', '6', '+', '1', /* 0x40 - 0x4f */
>         '2', '3', '0', '.', 0xff, 0xff, 0xff, 0xff, 0xff,
>         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,       /* 0x50 - 0x5F */
> -       '\r', 0xff, 0xff
> +       '\r', 0xff, '/',  '*',
>  };
>
>  static unsigned char kbd_ctrl_xlate[] = {
> @@ -75,7 +75,7 @@ static unsigned char kbd_ctrl_xlate[] = {
>         '8', '9', '-', '4', '5', '6', '+', '1',         /* 0x40 - 0x4f */
>         '2', '3', '0', '.', 0xff, 0xff, 0xff, 0xff,
>         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, /* 0x50 - 0x5F */
> -       '\r', 0xff, 0xff
> +       '\r', 0xff, '/',  '*',
>  };
>
>  /*
> --

Regards,
Bin
diff mbox

Patch

diff --git a/drivers/input/input.c b/drivers/input/input.c
index 95006a9..ec49d0f 100644
--- a/drivers/input/input.c
+++ b/drivers/input/input.c
@@ -43,7 +43,7 @@  static const uchar kbd_plain_xlate[] = {
 	'8',  '9',  '-',  '4',  '5',  '6',  '+',  '1',	/* 0x40 - 0x4f */
 	'2',  '3',  '0',  '.', 0xff, 0xff, 0xff, 0xff,
 	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,	/* 0x50 - 0x5F */
-	'\r', 0xff, 0xff
+	'\r', 0xff, '/',  '*',
 };
 
 static unsigned char kbd_shift_xlate[] = {
@@ -59,7 +59,7 @@  static unsigned char kbd_shift_xlate[] = {
 	'8', '9', '-', '4', '5', '6', '+', '1',	/* 0x40 - 0x4f */
 	'2', '3', '0', '.', 0xff, 0xff, 0xff, 0xff, 0xff,
 	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,	/* 0x50 - 0x5F */
-	'\r', 0xff, 0xff
+	'\r', 0xff, '/',  '*',
 };
 
 static unsigned char kbd_ctrl_xlate[] = {
@@ -75,7 +75,7 @@  static unsigned char kbd_ctrl_xlate[] = {
 	'8', '9', '-', '4', '5', '6', '+', '1',		/* 0x40 - 0x4f */
 	'2', '3', '0', '.', 0xff, 0xff, 0xff, 0xff,
 	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,	/* 0x50 - 0x5F */
-	'\r', 0xff, 0xff
+	'\r', 0xff, '/',  '*',
 };
 
 /*