Send out the scancode value in addition to the keycode so that
userspace may use the scancode to remap keys if they want.
---
 drivers/input/keyboard/intel_mid_keypad.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/input/keyboard/intel_mid_keypad.c 
b/drivers/input/keyboard/intel_mid_keypad.c
index 0716fd7..6634c2f 100644
--- a/drivers/input/keyboard/intel_mid_keypad.c
+++ b/drivers/input/keyboard/intel_mid_keypad.c
@@ -347,6 +347,7 @@ scan:
                                continue;
 
                        code = MATRIX_SCAN_CODE(row, col, MATRIX_ROW_SHIFT);
+                       input_event(keypad->input_dev, EV_MSC, MSC_SCAN, code);
                        input_report_key(keypad->input_dev,
                                keypad->keycode[code],
                                new_state[col] & (1 << row));
@@ -613,6 +614,8 @@ static int __devinit mrst_keypad_probe(struct pci_dev *pdev,
        input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP) |
                BIT_MASK(EV_REL);
 
+       input_set_capability(input_dev, EV_MSC, MSC_SCAN);
+
        mrst_keypad_build_keycode(keypad);
        pci_set_drvdata(pdev, keypad);
 
-- 
1.7.3.1

_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel

Reply via email to