[PATCH] serio_raw: add support for translated (SERIO_I8042XL) ports

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Niels de Vos
Date: Tuesday, August 26, 2008 - 8:18 am

serio_raw only binds to non-translated devices. Enable serio_raw to
bind to normal (translated) keyboards which can have non-standard
extensions (like POS Keyboards). With this it is possible to send
commands to the device over /dev/serio_raw<n>.

Signed-off-by: Niels de Vos <niels.devos@wincor-nixdorf.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
In ReplyTo: "[RFC][PATCH] POSKeyboard driver for exclusive keyboard access"

On Fri, Aug 22, 2008 at 8:02 PM, Dmitry Torokhov
<dmitry.torokhov@gmail.com> wrote:
---
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c
index c9397c8..470770c 100644
--- a/drivers/input/serio/serio_raw.c
+++ b/drivers/input/serio/serio_raw.c
@@ -373,6 +373,12 @@ static struct serio_device_id serio_raw_serio_ids[] = {
                .id     = SERIO_ANY,
                .extra  = SERIO_ANY,
        },
+       {
+               .type   = SERIO_8042_XL,
+               .proto  = SERIO_ANY,
+               .id     = SERIO_ANY,
+               .extra  = SERIO_ANY,
+       },
        { 0 }
 };
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] serio_raw: add support for translated (SERIO_I8042 ..., Niels de Vos, (Tue Aug 26, 8:18 am)