[PATCH 7/47] Add reporting of raw scancodes to atkbd.c

From: Vojtech Pavlik
Date: Thu Jul 29 2004 - 12:22:26 EST


You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input

===================================================================

ChangeSet@xxxxxxxxxxx, 2004-05-31 15:49:05+02:00, vojtech@xxxxxxx
input: Add reporting of raw scancodes to atkbd.c

Signed-off-by: Vojtech Pavlik <vojtech@xxxxxxx>


drivers/input/keyboard/atkbd.c | 8 +++++---
include/linux/input.h | 1 +
2 files changed, 6 insertions(+), 3 deletions(-)

===================================================================

diff -Nru a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
--- a/drivers/input/keyboard/atkbd.c Thu Jul 29 14:42:00 2004
+++ b/drivers/input/keyboard/atkbd.c Thu Jul 29 14:42:00 2004
@@ -280,6 +280,8 @@
if (!test_bit(ATKBD_FLAG_ENABLED, &atkbd->flags))
goto out;

+ input_event(&atkbd->dev, EV_MSC, MSC_RAW, code);
+
if (atkbd->translated) {

if (atkbd->emul ||
@@ -753,9 +755,10 @@
}

if (atkbd->write) {
- atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_LED) | BIT(EV_REP);
+ atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_LED) | BIT(EV_REP) | BIT(EV_MSC);
atkbd->dev.ledbit[0] = BIT(LED_NUML) | BIT(LED_CAPSL) | BIT(LED_SCROLLL);
- } else atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
+ } else atkbd->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_REP) | BIT(EV_MSC);
+ atkbd->dev.mscbit[0] = BIT(MSC_RAW);

if (!atkbd_softrepeat) {
atkbd->dev.rep[REP_DELAY] = 250;
@@ -795,7 +798,6 @@
atkbd->set = 2;
atkbd->id = 0xab00;
}
-

if (atkbd->extra) {
atkbd->dev.ledbit[0] |= BIT(LED_COMPOSE) | BIT(LED_SUSPEND) | BIT(LED_SLEEP) | BIT(LED_MUTE) | BIT(LED_MISC);
diff -Nru a/include/linux/input.h b/include/linux/input.h
--- a/include/linux/input.h Thu Jul 29 14:42:00 2004
+++ b/include/linux/input.h Thu Jul 29 14:42:00 2004
@@ -527,6 +527,7 @@
#define MSC_SERIAL 0x00
#define MSC_PULSELED 0x01
#define MSC_GESTURE 0x02
+#define MSC_RAW 0x03
#define MSC_MAX 0x07

/*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/