2023-02-27 05:09:42

by tangmeng

[permalink] [raw]
Subject: [PATCH] Input: libps2 - add support for lenovo xiaoxin keyboard

Modified keyboard_ids in function ps2_is_keyboard_id
add 0x83 for Lenovo Xiaoxin keyboard

Signed-off-by: Meng Tang <[email protected]>
---
drivers/input/serio/libps2.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/input/serio/libps2.c b/drivers/input/serio/libps2.c
index 3e19344eda93..84f366846cf8 100644
--- a/drivers/input/serio/libps2.c
+++ b/drivers/input/serio/libps2.c
@@ -156,6 +156,7 @@ bool ps2_is_keyboard_id(u8 id_byte)
0x5d, /* Trust keyboard */
0x60, /* NMB SGI keyboard, translated */
0x47, /* NMB SGI keyboard */
+ 0x83, /* Lenovo Xiaoxin keyboard */
};

return memchr(keyboard_ids, id_byte, sizeof(keyboard_ids)) != NULL;
--
2.20.1