Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4a1befbb
Commit
4a1befbb
authored
May 09, 2004
by
Dmitry Torokhov
Committed by
Vojtech Pavlik
May 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: trailing whitespace fixes in drivers/input/keyboard
parent
e70a5c57
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
26 deletions
+26
-26
drivers/input/keyboard/98kbd.c
drivers/input/keyboard/98kbd.c
+8
-8
drivers/input/keyboard/Kconfig
drivers/input/keyboard/Kconfig
+3
-3
drivers/input/keyboard/maple_keyb.c
drivers/input/keyboard/maple_keyb.c
+1
-1
drivers/input/keyboard/sunkbd.c
drivers/input/keyboard/sunkbd.c
+8
-8
drivers/input/keyboard/xtkbd.c
drivers/input/keyboard/xtkbd.c
+6
-6
No files found.
drivers/input/keyboard/98kbd.c
View file @
4a1befbb
...
...
@@ -12,18 +12,18 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
*/
#include <linux/delay.h>
...
...
@@ -43,7 +43,7 @@ MODULE_LICENSE("GPL");
#define KBD98_KEY 0x7f
#define KBD98_RELEASE 0x80
static
unsigned
char
kbd98_keycode
[
256
]
=
{
static
unsigned
char
kbd98_keycode
[
256
]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
43
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
41
,
26
,
28
,
30
,
31
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
27
,
44
,
45
,
46
,
47
,
48
,
49
,
50
,
...
...
@@ -247,7 +247,7 @@ static int kbd98_command(struct kbd98 *kbd98, unsigned char *param, int command)
int
i
;
kbd98
->
cmdcnt
=
receive
;
if
(
command
&
0xff
)
if
(
kbd98_sendbyte
(
kbd98
,
command
&
0xff
))
return
(
kbd98
->
cmdcnt
=
0
)
-
1
;
...
...
@@ -262,7 +262,7 @@ static int kbd98_command(struct kbd98 *kbd98, unsigned char *param, int command)
for
(
i
=
0
;
i
<
receive
;
i
++
)
param
[
i
]
=
kbd98
->
cmdbuf
[(
receive
-
1
)
-
i
];
if
(
kbd98
->
cmdcnt
)
if
(
kbd98
->
cmdcnt
)
return
(
kbd98
->
cmdcnt
=
0
)
-
1
;
return
0
;
...
...
@@ -322,7 +322,7 @@ void kbd98_connect(struct serio *serio, struct serio_dev *dev)
memset
(
kbd98
,
0
,
sizeof
(
struct
kbd98
));
kbd98
->
emul
.
scancode
=
KBD98_KEY_UNKNOWN
;
kbd98
->
dev
.
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_LED
)
|
BIT
(
EV_REP
);
kbd98
->
dev
.
ledbit
[
0
]
=
BIT
(
LED_NUML
)
|
BIT
(
LED_CAPSL
)
|
BIT
(
LED_KANA
);
...
...
drivers/input/keyboard/Kconfig
View file @
4a1befbb
...
...
@@ -62,7 +62,7 @@ config KEYBOARD_XTKBD
Say Y here if you want to use the old IBM PC/XT keyboard (or
compatible) on your system. This is only possible with a
parallel port keyboard adapter, you cannot connect it to the
keyboard port on a PC that runs Linux.
keyboard port on a PC that runs Linux.
To compile this driver as a module, choose M here: the
module will be called xtkbd.
...
...
@@ -92,7 +92,7 @@ config KEYBOARD_AMIGA
depends on AMIGA && INPUT && INPUT_KEYBOARD
help
Say Y here if you are running Linux on any AMIGA and have a keyboard
attached.
attached.
To compile this driver as a module, choose M here: the
module will be called amikbd.
...
...
@@ -103,7 +103,7 @@ config KEYBOARD_98KBD
select SERIO
help
Say Y here if you want to use the NEC PC-9801/PC-9821 keyboard (or
compatible) on your system.
compatible) on your system.
To compile this driver as a module, choose M here: the
module will be called 98kbd.
...
...
drivers/input/keyboard/maple_keyb.c
View file @
4a1befbb
...
...
@@ -139,7 +139,7 @@ static int dc_kbd_connect(struct maple_device *dev)
kbd
->
dev
.
name
=
dev
->
product_name
;
kbd
->
dev
.
id
.
bustype
=
BUS_MAPLE
;
input_register_device
(
&
kbd
->
dev
);
maple_getcond_callback
(
dev
,
dc_kbd_callback
,
1
,
MAPLE_FUNC_KEYBOARD
);
...
...
drivers/input/keyboard/sunkbd.c
View file @
4a1befbb
...
...
@@ -11,18 +11,18 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* Should you need to contact me, the author, you can do so either by
* e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail:
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic
...
...
@@ -148,7 +148,7 @@ static int sunkbd_event(struct input_dev *dev, unsigned int type, unsigned int c
case
EV_LED
:
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
SUNKBD_CMD_SETLED
);
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
(
!!
test_bit
(
LED_CAPSL
,
dev
->
led
)
<<
3
)
|
(
!!
test_bit
(
LED_SCROLLL
,
dev
->
led
)
<<
2
)
|
(
!!
test_bit
(
LED_COMPOSE
,
dev
->
led
)
<<
1
)
|
!!
test_bit
(
LED_NUML
,
dev
->
led
));
return
0
;
...
...
@@ -160,7 +160,7 @@ static int sunkbd_event(struct input_dev *dev, unsigned int type, unsigned int c
case
SND_CLICK
:
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
SUNKBD_CMD_NOCLICK
-
value
);
return
0
;
case
SND_BELL
:
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
SUNKBD_CMD_BELLOFF
-
value
);
return
0
;
...
...
@@ -210,7 +210,7 @@ static void sunkbd_reinit(void *data)
wait_event_interruptible_timeout
(
sunkbd
->
wait
,
sunkbd
->
reset
>=
0
,
HZ
);
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
SUNKBD_CMD_SETLED
);
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
(
!!
test_bit
(
LED_CAPSL
,
sunkbd
->
dev
.
led
)
<<
3
)
|
(
!!
test_bit
(
LED_SCROLLL
,
sunkbd
->
dev
.
led
)
<<
2
)
|
(
!!
test_bit
(
LED_COMPOSE
,
sunkbd
->
dev
.
led
)
<<
1
)
|
!!
test_bit
(
LED_NUML
,
sunkbd
->
dev
.
led
));
sunkbd
->
serio
->
write
(
sunkbd
->
serio
,
SUNKBD_CMD_NOCLICK
-
!!
test_bit
(
SND_CLICK
,
sunkbd
->
dev
.
snd
));
...
...
@@ -231,7 +231,7 @@ static void sunkbd_connect(struct serio *serio, struct serio_dev *dev)
if
((
serio
->
type
&
SERIO_PROTO
)
&&
(
serio
->
type
&
SERIO_PROTO
)
!=
SERIO_SUNKBD
)
return
;
if
(
!
(
sunkbd
=
kmalloc
(
sizeof
(
struct
sunkbd
),
GFP_KERNEL
)))
return
;
...
...
drivers/input/keyboard/xtkbd.c
View file @
4a1befbb
...
...
@@ -11,18 +11,18 @@
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*
* Should you need to contact me, the author, you can do so either by
* e-mail - mail your message to <vojtech@ucw.cz>, or by paper mail:
* Vojtech Pavlik, Simunkova 1594, Prague 8, 182 00 Czech Republic
...
...
@@ -43,7 +43,7 @@ MODULE_LICENSE("GPL");
#define XTKBD_KEY 0x7f
#define XTKBD_RELEASE 0x80
static
unsigned
char
xtkbd_keycode
[
256
]
=
{
static
unsigned
char
xtkbd_keycode
[
256
]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
,
17
,
18
,
19
,
20
,
21
,
22
,
23
,
24
,
25
,
26
,
27
,
28
,
29
,
30
,
31
,
32
,
33
,
34
,
35
,
36
,
37
,
38
,
39
,
40
,
41
,
42
,
43
,
44
,
45
,
46
,
47
,
...
...
@@ -98,7 +98,7 @@ void xtkbd_connect(struct serio *serio, struct serio_dev *dev)
return
;
memset
(
xtkbd
,
0
,
sizeof
(
struct
xtkbd
));
xtkbd
->
dev
.
evbit
[
0
]
=
BIT
(
EV_KEY
)
|
BIT
(
EV_REP
);
xtkbd
->
serio
=
serio
;
...
...
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