]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/keyboard.c
Input: put ledstate in the keyboard notifier
[linux-2.6-omap-h63xx.git] / drivers / char / keyboard.c
index 4dbd3425e928ed563ff4954378147692deff7b94..59608e341385d56ce3c70304a77480ff0abbe5b0 100644 (file)
@@ -1237,6 +1237,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
        }
 
        param.shift = shift_final = (shift_state | kbd->slockstate) ^ kbd->lockstate;
+       param.ledstate = kbd->ledflagstate;
        key_map = key_maps[shift_final];
 
        if (atomic_notifier_call_chain(&keyboard_notifier_list, KBD_KEYCODE, &param) == NOTIFY_STOP || !key_map) {
@@ -1285,6 +1286,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
 
        (*k_handler[type])(vc, keysym & 0xff, !down);
 
+       param.ledstate = kbd->ledflagstate;
        atomic_notifier_call_chain(&keyboard_notifier_list, KBD_POST_KEYSYM, &param);
 
        if (type != KT_SLOCK)