summaryrefslogtreecommitdiffstats
path: root/drivers/char/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/keyboard.c')
-rw-r--r--drivers/char/keyboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c
index ea97ee151..90d95f7ba 100644
--- a/drivers/char/keyboard.c
+++ b/drivers/char/keyboard.c
@@ -61,7 +61,9 @@
#define KBD_DEFLOCK 0
#endif
+void (*kbd_ledfunc)(unsigned int led) = NULL;
EXPORT_SYMBOL(handle_scancode);
+EXPORT_SYMBOL(kbd_ledfunc);
extern void ctrl_alt_del(void);
@@ -920,6 +922,7 @@ static void kbd_bh(void)
if (leds != ledstate) {
ledstate = leds;
kbd_leds(leds);
+ if (kbd_ledfunc) kbd_ledfunc(leds);
}
}