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
e0db43b0
Commit
e0db43b0
authored
Aug 28, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: keyspan driver: minor formatting fixes.
parent
40dd1e76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.c
+8
-10
No files found.
drivers/usb/serial/keyspan.c
View file @
e0db43b0
...
@@ -402,7 +402,7 @@ static void usa26_indat_callback(struct urb *urb)
...
@@ -402,7 +402,7 @@ static void usa26_indat_callback(struct urb *urb)
port
=
(
struct
usb_serial_port
*
)
urb
->
context
;
port
=
(
struct
usb_serial_port
*
)
urb
->
context
;
tty
=
port
->
tty
;
tty
=
port
->
tty
;
if
(
urb
->
actual_length
)
{
if
(
urb
->
actual_length
)
{
/* 0x80 bit is error flag */
/* 0x80 bit is error flag */
if
((
data
[
0
]
&
0x80
)
==
0
)
{
if
((
data
[
0
]
&
0x80
)
==
0
)
{
/* no error on any byte */
/* no error on any byte */
for
(
i
=
1
;
i
<
urb
->
actual_length
;
++
i
)
{
for
(
i
=
1
;
i
<
urb
->
actual_length
;
++
i
)
{
...
@@ -787,7 +787,7 @@ static void usa49_indat_callback(struct urb *urb)
...
@@ -787,7 +787,7 @@ static void usa49_indat_callback(struct urb *urb)
port
=
(
struct
usb_serial_port
*
)
urb
->
context
;
port
=
(
struct
usb_serial_port
*
)
urb
->
context
;
tty
=
port
->
tty
;
tty
=
port
->
tty
;
if
(
urb
->
actual_length
)
{
if
(
urb
->
actual_length
)
{
/* 0x80 bit is error flag */
/* 0x80 bit is error flag */
if
((
data
[
0
]
&
0x80
)
==
0
)
{
if
((
data
[
0
]
&
0x80
)
==
0
)
{
/* no error on any byte */
/* no error on any byte */
for
(
i
=
1
;
i
<
urb
->
actual_length
;
++
i
)
{
for
(
i
=
1
;
i
<
urb
->
actual_length
;
++
i
)
{
...
@@ -1104,25 +1104,25 @@ static struct callbacks {
...
@@ -1104,25 +1104,25 @@ static struct callbacks {
/* msg_usa26 callbacks */
/* msg_usa26 callbacks */
.
instat_callback
=
usa26_instat_callback
,
.
instat_callback
=
usa26_instat_callback
,
.
glocont_callback
=
usa26_glocont_callback
,
.
glocont_callback
=
usa26_glocont_callback
,
.
indat_callback
=
usa26_indat_callback
,
.
indat_callback
=
usa26_indat_callback
,
.
outdat_callback
=
usa2x_outdat_callback
,
.
outdat_callback
=
usa2x_outdat_callback
,
.
inack_callback
=
usa26_inack_callback
,
.
inack_callback
=
usa26_inack_callback
,
.
outcont_callback
=
usa26_outcont_callback
,
.
outcont_callback
=
usa26_outcont_callback
,
},
{
},
{
/* msg_usa28 callbacks */
/* msg_usa28 callbacks */
.
instat_callback
=
usa28_instat_callback
,
.
instat_callback
=
usa28_instat_callback
,
.
glocont_callback
=
usa28_glocont_callback
,
.
glocont_callback
=
usa28_glocont_callback
,
.
indat_callback
=
usa28_indat_callback
,
.
indat_callback
=
usa28_indat_callback
,
.
outdat_callback
=
usa2x_outdat_callback
,
.
outdat_callback
=
usa2x_outdat_callback
,
.
inack_callback
=
usa28_inack_callback
,
.
inack_callback
=
usa28_inack_callback
,
.
outcont_callback
=
usa28_outcont_callback
,
.
outcont_callback
=
usa28_outcont_callback
,
},
{
},
{
/* msg_usa49 callbacks */
/* msg_usa49 callbacks */
.
instat_callback
=
usa49_instat_callback
,
.
instat_callback
=
usa49_instat_callback
,
.
glocont_callback
=
usa49_glocont_callback
,
.
glocont_callback
=
usa49_glocont_callback
,
.
indat_callback
=
usa49_indat_callback
,
.
indat_callback
=
usa49_indat_callback
,
.
outdat_callback
=
usa2x_outdat_callback
,
.
outdat_callback
=
usa2x_outdat_callback
,
.
inack_callback
=
usa49_inack_callback
,
.
inack_callback
=
usa49_inack_callback
,
.
outcont_callback
=
usa49_outcont_callback
,
.
outcont_callback
=
usa49_outcont_callback
,
}
}
};
};
...
@@ -1363,8 +1363,6 @@ static int keyspan_usa28_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
...
@@ -1363,8 +1363,6 @@ static int keyspan_usa28_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
return
(
KEYSPAN_BAUD_RATE_OK
);
return
(
KEYSPAN_BAUD_RATE_OK
);
}
}
static
int
keyspan_usa26_send_setup
(
struct
usb_serial
*
serial
,
static
int
keyspan_usa26_send_setup
(
struct
usb_serial
*
serial
,
struct
usb_serial_port
*
port
,
struct
usb_serial_port
*
port
,
int
reset_port
)
int
reset_port
)
...
...
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