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
Kirill Smelkov
linux
Commits
ab0c3443
Commit
ab0c3443
authored
May 29, 2005
by
Dmitry Torokhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: whitespace fixes in driver/input/joystick
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
de1b963a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
23 deletions
+23
-23
drivers/input/joystick/a3d.c
drivers/input/joystick/a3d.c
+1
-1
drivers/input/joystick/adi.c
drivers/input/joystick/adi.c
+2
-2
drivers/input/joystick/gamecon.c
drivers/input/joystick/gamecon.c
+5
-5
drivers/input/joystick/gf2k.c
drivers/input/joystick/gf2k.c
+1
-1
drivers/input/joystick/grip_mp.c
drivers/input/joystick/grip_mp.c
+1
-1
drivers/input/joystick/spaceball.c
drivers/input/joystick/spaceball.c
+2
-2
drivers/input/joystick/spaceorb.c
drivers/input/joystick/spaceorb.c
+1
-1
drivers/input/joystick/tmdc.c
drivers/input/joystick/tmdc.c
+1
-1
drivers/input/joystick/turbografx.c
drivers/input/joystick/turbografx.c
+9
-9
No files found.
drivers/input/joystick/a3d.c
View file @
ab0c3443
...
...
@@ -185,7 +185,7 @@ static void a3d_poll(struct gameport *gameport)
a3d
->
reads
++
;
if
(
a3d_read_packet
(
a3d
->
gameport
,
a3d
->
length
,
data
)
!=
a3d
->
length
||
data
[
0
]
!=
a3d
->
mode
||
a3d_csum
(
data
,
a3d
->
length
))
a3d
->
bads
++
;
a3d
->
bads
++
;
else
a3d_read
(
a3d
,
data
);
}
...
...
drivers/input/joystick/adi.c
View file @
ab0c3443
...
...
@@ -82,7 +82,7 @@ static char adi_cm2_abs[] = { ABS_X, ABS_Y, ABS_Z, ABS_RX, ABS_RY, ABS_RZ };
static
char
adi_wmf_abs
[]
=
{
ABS_WHEEL
,
ABS_GAS
,
ABS_BRAKE
,
ABS_HAT0X
,
ABS_HAT0Y
,
ABS_HAT1X
,
ABS_HAT1Y
,
ABS_HAT2X
,
ABS_HAT2Y
};
static
short
adi_wmgpe_key
[]
=
{
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
,
BTN_TL
,
BTN_TR
,
BTN_START
,
BTN_MODE
,
BTN_SELECT
};
static
short
adi_wmi_key
[]
=
{
BTN_TRIGGER
,
BTN_TOP
,
BTN_THUMB
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
,
BTN_BASE3
,
BTN_BASE4
,
BTN_EXTRA
};
static
short
adi_wmi_key
[]
=
{
BTN_TRIGGER
,
BTN_TOP
,
BTN_THUMB
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
,
BTN_BASE3
,
BTN_BASE4
,
BTN_EXTRA
};
static
short
adi_wmed3d_key
[]
=
{
BTN_TRIGGER
,
BTN_THUMB
,
BTN_THUMB2
,
BTN_TOP
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
};
static
short
adi_cm2_key
[]
=
{
BTN_1
,
BTN_2
,
BTN_3
,
BTN_4
,
BTN_5
,
BTN_6
,
BTN_7
,
BTN_8
};
...
...
@@ -183,7 +183,7 @@ static void adi_move_bits(struct adi_port *port, int length)
int
i
;
struct
adi
*
adi
=
port
->
adi
;
adi
[
0
].
idx
=
adi
[
1
].
idx
=
0
;
adi
[
0
].
idx
=
adi
[
1
].
idx
=
0
;
if
(
adi
[
0
].
ret
<=
0
||
adi
[
1
].
ret
<=
0
)
return
;
if
(
adi
[
0
].
data
[
0
]
&
0x20
||
~
adi
[
1
].
data
[
0
]
&
0x20
)
return
;
...
...
drivers/input/joystick/gamecon.c
View file @
ab0c3443
/*
* NES, SNES, N64, MultiSystem, PSX gamepad driver for Linux
*
* Copyright (c) 1999-2004
Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2004
Peter Nelson <rufus-kernel@hackish.org>
* Copyright (c) 1999-2004 Vojtech Pavlik <vojtech@suse.cz>
* Copyright (c) 2004 Peter Nelson <rufus-kernel@hackish.org>
*
* Based on the work of:
*
Andree Borrmann John Dahlstrom
*
David Kuder Nathan Hand
* Andree Borrmann John Dahlstrom
* David Kuder Nathan Hand
*/
/*
...
...
@@ -433,7 +433,7 @@ static void gc_timer(unsigned long private)
gc_psx_read_packet
(
gc
,
data_psx
,
data
);
for
(
i
=
0
;
i
<
5
;
i
++
)
{
switch
(
data
[
i
])
{
switch
(
data
[
i
])
{
case
GC_PSX_RUMBLE
:
...
...
drivers/input/joystick/gf2k.c
View file @
ab0c3443
...
...
@@ -329,7 +329,7 @@ static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv)
for
(
i
=
0
;
i
<
gf2k_axes
[
gf2k
->
id
];
i
++
)
{
gf2k
->
dev
.
absmax
[
gf2k_abs
[
i
]]
=
(
i
<
2
)
?
gf2k
->
dev
.
abs
[
gf2k_abs
[
i
]]
*
2
-
32
:
gf2k
->
dev
.
abs
[
gf2k_abs
[
0
]]
+
gf2k
->
dev
.
abs
[
gf2k_abs
[
1
]]
-
32
;
gf2k
->
dev
.
abs
[
gf2k_abs
[
0
]]
+
gf2k
->
dev
.
abs
[
gf2k_abs
[
1
]]
-
32
;
gf2k
->
dev
.
absmin
[
gf2k_abs
[
i
]]
=
32
;
gf2k
->
dev
.
absfuzz
[
gf2k_abs
[
i
]]
=
8
;
gf2k
->
dev
.
absflat
[
gf2k_abs
[
i
]]
=
(
i
<
2
)
?
24
:
0
;
...
...
drivers/input/joystick/grip_mp.c
View file @
ab0c3443
...
...
@@ -171,7 +171,7 @@ static int mp_io(struct gameport* gameport, int sendflags, int sendcode, u32 *pa
*
packet
=
0
;
raw_data
=
gameport_read
(
gameport
);
if
(
raw_data
&
1
)
return
IO_RETRY
;
return
IO_RETRY
;
for
(
i
=
0
;
i
<
64
;
i
++
)
{
raw_data
=
gameport_read
(
gameport
);
...
...
drivers/input/joystick/spaceball.c
View file @
ab0c3443
...
...
@@ -4,8 +4,8 @@
* Copyright (c) 1999-2001 Vojtech Pavlik
*
* Based on the work of:
*
David Thompson
*
Joseph Krahn
* David Thompson
* Joseph Krahn
*/
/*
...
...
drivers/input/joystick/spaceorb.c
View file @
ab0c3443
...
...
@@ -4,7 +4,7 @@
* Copyright (c) 1999-2001 Vojtech Pavlik
*
* Based on the work of:
*
David Thompson
* David Thompson
*/
/*
...
...
drivers/input/joystick/tmdc.c
View file @
ab0c3443
...
...
@@ -79,7 +79,7 @@ static short tmdc_btn_pad[TMDC_BTN] =
{
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
,
BTN_START
,
BTN_SELECT
,
BTN_TL
,
BTN_TR
};
static
short
tmdc_btn_joy
[
TMDC_BTN
]
=
{
BTN_TRIGGER
,
BTN_THUMB
,
BTN_TOP
,
BTN_TOP2
,
BTN_BASE
,
BTN_BASE2
,
BTN_THUMB2
,
BTN_PINKIE
,
BTN_BASE3
,
BTN_BASE4
,
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
};
BTN_BASE3
,
BTN_BASE4
,
BTN_A
,
BTN_B
,
BTN_C
,
BTN_X
,
BTN_Y
,
BTN_Z
};
static
short
tmdc_btn_fm
[
TMDC_BTN
]
=
{
BTN_TRIGGER
,
BTN_C
,
BTN_B
,
BTN_A
,
BTN_THUMB
,
BTN_X
,
BTN_Y
,
BTN_Z
,
BTN_TOP
,
BTN_TOP2
};
static
short
tmdc_btn_at
[
TMDC_BTN
]
=
...
...
drivers/input/joystick/turbografx.c
View file @
ab0c3443
...
...
@@ -99,7 +99,7 @@ static void tgfx_timer(unsigned long private)
for
(
i
=
0
;
i
<
7
;
i
++
)
if
(
tgfx
->
sticks
&
(
1
<<
i
))
{
dev
=
tgfx
->
dev
+
i
;
dev
=
tgfx
->
dev
+
i
;
parport_write_data
(
tgfx
->
pd
->
port
,
~
(
1
<<
i
));
data1
=
parport_read_status
(
tgfx
->
pd
->
port
)
^
0x7f
;
...
...
@@ -122,22 +122,22 @@ static void tgfx_timer(unsigned long private)
static
int
tgfx_open
(
struct
input_dev
*
dev
)
{
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!
tgfx
->
used
++
)
{
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!
tgfx
->
used
++
)
{
parport_claim
(
tgfx
->
pd
);
parport_write_control
(
tgfx
->
pd
->
port
,
0x04
);
mod_timer
(
&
tgfx
->
timer
,
jiffies
+
TGFX_REFRESH_TIME
);
mod_timer
(
&
tgfx
->
timer
,
jiffies
+
TGFX_REFRESH_TIME
);
}
return
0
;
return
0
;
}
static
void
tgfx_close
(
struct
input_dev
*
dev
)
{
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!--
tgfx
->
used
)
{
del_timer
(
&
tgfx
->
timer
);
struct
tgfx
*
tgfx
=
dev
->
private
;
if
(
!--
tgfx
->
used
)
{
del_timer
(
&
tgfx
->
timer
);
parport_write_control
(
tgfx
->
pd
->
port
,
0x00
);
parport_release
(
tgfx
->
pd
);
parport_release
(
tgfx
->
pd
);
}
}
...
...
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