Input: sparse-keymap - report scancodes with key events

Scancodes are useful debugging aids when incorrect keycodes
are being sent, as is common with laptop hotkeys.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by Seth Forshee and committed by Dmitry Torokhov f3cf5c4f d51ca076

+6
+6
drivers/input/sparse-keymap.c
··· 208 208 } 209 209 } 210 210 211 + if (test_bit(EV_KEY, dev->evbit)) { 212 + __set_bit(EV_MSC, dev->evbit); 213 + __set_bit(MSC_SCAN, dev->mscbit); 214 + } 215 + 211 216 dev->keycode = map; 212 217 dev->keycodemax = map_size; 213 218 dev->getkeycode = sparse_keymap_getkeycode; ··· 273 268 { 274 269 switch (ke->type) { 275 270 case KE_KEY: 271 + input_event(dev, EV_MSC, MSC_SCAN, ke->code); 276 272 input_report_key(dev, ke->keycode, value); 277 273 input_sync(dev); 278 274 if (value && autorelease) {