Skip to content

Commit 80db2a0

Browse files
committed
Input: cros_ec_keyb - send 'scancodes' in addition to key events
To let userspace know what 'scancodes' should be used in EVIOCGKEYCODE and EVIOCSKEYCODE ioctls, we should send EV_MSC/MSC_SCAN events in addition to EV_KEY/KEY_* events. The driver already declared MSC_SCAN capability, so it is only matter of actually sending the events. Link: https://lore.kernel.org/r/[email protected] Acked-by: Rajat Jain <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 223f61b commit 80db2a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/input/keyboard/cros_ec_keyb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ static void cros_ec_keyb_process(struct cros_ec_keyb *ckdev,
183183
"changed: [r%d c%d]: byte %02x\n",
184184
row, col, new_state);
185185

186+
input_event(idev, EV_MSC, MSC_SCAN, pos);
186187
input_report_key(idev, keycodes[pos],
187188
new_state);
188189
}

0 commit comments

Comments
 (0)