diff options
-rw-r--r-- | drivers/char/keyboard.c | 2 | ||||
-rw-r--r-- | include/linux/keyboard.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 4dbd3425e928..59608e341385 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -1237,6 +1237,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw) | |||
1237 | } | 1237 | } |
1238 | 1238 | ||
1239 | param.shift = shift_final = (shift_state | kbd->slockstate) ^ kbd->lockstate; | 1239 | param.shift = shift_final = (shift_state | kbd->slockstate) ^ kbd->lockstate; |
1240 | param.ledstate = kbd->ledflagstate; | ||
1240 | key_map = key_maps[shift_final]; | 1241 | key_map = key_maps[shift_final]; |
1241 | 1242 | ||
1242 | if (atomic_notifier_call_chain(&keyboard_notifier_list, KBD_KEYCODE, ¶m) == NOTIFY_STOP || !key_map) { | 1243 | if (atomic_notifier_call_chain(&keyboard_notifier_list, KBD_KEYCODE, ¶m) == NOTIFY_STOP || !key_map) { |
@@ -1285,6 +1286,7 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw) | |||
1285 | 1286 | ||
1286 | (*k_handler[type])(vc, keysym & 0xff, !down); | 1287 | (*k_handler[type])(vc, keysym & 0xff, !down); |
1287 | 1288 | ||
1289 | param.ledstate = kbd->ledflagstate; | ||
1288 | atomic_notifier_call_chain(&keyboard_notifier_list, KBD_POST_KEYSYM, ¶m); | 1290 | atomic_notifier_call_chain(&keyboard_notifier_list, KBD_POST_KEYSYM, ¶m); |
1289 | 1291 | ||
1290 | if (type != KT_SLOCK) | 1292 | if (type != KT_SLOCK) |
diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h index 65c2d70853e9..a3c984d780f0 100644 --- a/include/linux/keyboard.h +++ b/include/linux/keyboard.h | |||
@@ -33,6 +33,7 @@ struct keyboard_notifier_param { | |||
33 | struct vc_data *vc; /* VC on which the keyboard press was done */ | 33 | struct vc_data *vc; /* VC on which the keyboard press was done */ |
34 | int down; /* Pressure of the key? */ | 34 | int down; /* Pressure of the key? */ |
35 | int shift; /* Current shift mask */ | 35 | int shift; /* Current shift mask */ |
36 | int ledstate; /* Current led state */ | ||
36 | unsigned int value; /* keycode, unicode value or keysym */ | 37 | unsigned int value; /* keycode, unicode value or keysym */ |
37 | }; | 38 | }; |
38 | 39 | ||