diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-07-19 01:13:26 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-07-19 01:13:26 -0400 |
commit | 2b192908b8e74ce0753c7dff92d244735d1eeed9 (patch) | |
tree | 022ef1586870ce78f7aaed9b713e740c46be1cd1 /drivers/char/keyboard.c | |
parent | 826d598242d9200ddee63fce96f03793fddee4fc (diff) |
Input: keyboard - remove static variable and clean up initialization
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/char/keyboard.c')
-rw-r--r-- | drivers/char/keyboard.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 1e946f585673..1120586619ab 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c | |||
@@ -107,7 +107,6 @@ const int NR_TYPES = ARRAY_SIZE(max_vals); | |||
107 | 107 | ||
108 | struct kbd_struct kbd_table[MAX_NR_CONSOLES]; | 108 | struct kbd_struct kbd_table[MAX_NR_CONSOLES]; |
109 | static struct kbd_struct *kbd = kbd_table; | 109 | static struct kbd_struct *kbd = kbd_table; |
110 | static struct kbd_struct kbd0; | ||
111 | 110 | ||
112 | int spawnpid, spawnsig; | 111 | int spawnpid, spawnsig; |
113 | 112 | ||
@@ -1347,15 +1346,15 @@ int __init kbd_init(void) | |||
1347 | { | 1346 | { |
1348 | int i; | 1347 | int i; |
1349 | 1348 | ||
1350 | kbd0.ledflagstate = kbd0.default_ledflagstate = KBD_DEFLEDS; | 1349 | for (i = 0; i < MAX_NR_CONSOLES; i++) { |
1351 | kbd0.ledmode = LED_SHOW_FLAGS; | 1350 | kbd_table[i].ledflagstate = KBD_DEFLEDS; |
1352 | kbd0.lockstate = KBD_DEFLOCK; | 1351 | kbd_table[i].default_ledflagstate = KBD_DEFLEDS; |
1353 | kbd0.slockstate = 0; | 1352 | kbd_table[i].ledmode = LED_SHOW_FLAGS; |
1354 | kbd0.modeflags = KBD_DEFMODE; | 1353 | kbd_table[i].lockstate = KBD_DEFLOCK; |
1355 | kbd0.kbdmode = VC_XLATE; | 1354 | kbd_table[i].slockstate = 0; |
1356 | 1355 | kbd_table[i].modeflags = KBD_DEFMODE; | |
1357 | for (i = 0 ; i < MAX_NR_CONSOLES ; i++) | 1356 | kbd_table[i].kbdmode = VC_XLATE; |
1358 | kbd_table[i] = kbd0; | 1357 | } |
1359 | 1358 | ||
1360 | input_register_handler(&kbd_handler); | 1359 | input_register_handler(&kbd_handler); |
1361 | 1360 | ||