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
6aa4bbe5
Commit
6aa4bbe5
authored
Oct 04, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: mcp2120 dongle module conversion.
parent
f3d60717
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
drivers/net/irda/mcp2120.c
drivers/net/irda/mcp2120.c
+6
-10
No files found.
drivers/net/irda/mcp2120.c
View file @
6aa4bbe5
...
@@ -40,12 +40,12 @@ static int mcp2120_change_speed(struct irda_task *task);
...
@@ -40,12 +40,12 @@ static int mcp2120_change_speed(struct irda_task *task);
#define MCP2120_COMMIT 0x11
#define MCP2120_COMMIT 0x11
static
struct
dongle_reg
dongle
=
{
static
struct
dongle_reg
dongle
=
{
Q_NULL
,
.
type
=
IRDA_MCP2120_DONGLE
,
IRDA_MCP2120_DONGLE
,
.
open
=
mcp2120_open
,
mcp2120_open
,
.
close
=
mcp2120_close
,
mcp2120_close
,
.
reset
=
mcp2120_reset
,
mcp2120_reset
,
.
change_speed
=
mcp2120_change_speed
,
mcp2120_change_speed
,
.
owner
=
THIS_MODULE
,
};
};
int
__init
mcp2120_init
(
void
)
int
__init
mcp2120_init
(
void
)
...
@@ -62,8 +62,6 @@ static void mcp2120_open(dongle_t *self, struct qos_info *qos)
...
@@ -62,8 +62,6 @@ static void mcp2120_open(dongle_t *self, struct qos_info *qos)
{
{
qos
->
baud_rate
.
bits
&=
IR_9600
|
IR_19200
|
IR_38400
|
IR_57600
|
IR_115200
;
qos
->
baud_rate
.
bits
&=
IR_9600
|
IR_19200
|
IR_38400
|
IR_57600
|
IR_115200
;
qos
->
min_turn_time
.
bits
=
0x01
;
qos
->
min_turn_time
.
bits
=
0x01
;
MOD_INC_USE_COUNT
;
}
}
static
void
mcp2120_close
(
dongle_t
*
self
)
static
void
mcp2120_close
(
dongle_t
*
self
)
...
@@ -72,8 +70,6 @@ static void mcp2120_close(dongle_t *self)
...
@@ -72,8 +70,6 @@ static void mcp2120_close(dongle_t *self)
/* reset and inhibit mcp2120 */
/* reset and inhibit mcp2120 */
self
->
set_dtr_rts
(
self
->
dev
,
TRUE
,
TRUE
);
self
->
set_dtr_rts
(
self
->
dev
,
TRUE
,
TRUE
);
//self->set_dtr_rts(self->dev, FALSE, FALSE);
//self->set_dtr_rts(self->dev, FALSE, FALSE);
MOD_DEC_USE_COUNT
;
}
}
/*
/*
...
...
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