Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2b192908
Commit
2b192908
authored
Jul 19, 2006
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: keyboard - remove static variable and clean up initialization
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
826d5982
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
drivers/char/keyboard.c
drivers/char/keyboard.c
+9
-10
No files found.
drivers/char/keyboard.c
View file @
2b192908
...
...
@@ -107,7 +107,6 @@ const int NR_TYPES = ARRAY_SIZE(max_vals);
struct
kbd_struct
kbd_table
[
MAX_NR_CONSOLES
];
static
struct
kbd_struct
*
kbd
=
kbd_table
;
static
struct
kbd_struct
kbd0
;
int
spawnpid
,
spawnsig
;
...
...
@@ -1347,15 +1346,15 @@ int __init kbd_init(void)
{
int
i
;
kbd0
.
ledflagstate
=
kbd0
.
default_ledflagstate
=
KBD_DEFLEDS
;
kbd0
.
ledmode
=
LED_SHOW_FLAG
S
;
kbd0
.
lockstate
=
KBD_DEFLOCK
;
kbd0
.
slockstate
=
0
;
kbd0
.
modeflags
=
KBD_DEFMODE
;
kbd0
.
kbdmode
=
VC_XLATE
;
for
(
i
=
0
;
i
<
MAX_NR_CONSOLES
;
i
++
)
kbd_table
[
i
]
=
kbd0
;
for
(
i
=
0
;
i
<
MAX_NR_CONSOLES
;
i
++
)
{
kbd_table
[
i
].
ledflagstate
=
KBD_DEFLED
S
;
kbd_table
[
i
].
default_ledflagstate
=
KBD_DEFLEDS
;
kbd_table
[
i
].
ledmode
=
LED_SHOW_FLAGS
;
kbd_table
[
i
].
lockstate
=
KBD_DEFLOCK
;
kbd_table
[
i
].
slockstate
=
0
;
kbd_table
[
i
].
modeflags
=
KBD_DEFMODE
;
kbd_table
[
i
].
kbdmode
=
VC_XLATE
;
}
input_register_handler
(
&
kbd_handler
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment