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
83055835
Commit
83055835
authored
Oct 04, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: old_belkin dongle module conversion.
parent
6aa4bbe5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
drivers/net/irda/old_belkin.c
drivers/net/irda/old_belkin.c
+6
-10
No files found.
drivers/net/irda/old_belkin.c
View file @
83055835
...
@@ -74,12 +74,12 @@ static int old_belkin_reset(struct irda_task *task);
...
@@ -74,12 +74,12 @@ static int old_belkin_reset(struct irda_task *task);
/* static __u32 baud_rates[] = { 9600 }; */
/* static __u32 baud_rates[] = { 9600 }; */
static
struct
dongle_reg
dongle
=
{
static
struct
dongle_reg
dongle
=
{
Q_NULL
,
.
type
=
IRDA_OLD_BELKIN_DONGLE
,
IRDA_OLD_BELKIN_DONGLE
,
.
open
=
old_belkin_open
,
old_belkin_open
,
.
close
=
old_belkin_close
,
old_belkin_close
,
.
reset
=
old_belkin_reset
,
old_belkin_reset
,
.
change_speed
=
old_belkin_change_speed
,
old_belkin_change_speed
,
.
owner
=
THIS_MODULE
,
};
};
int
__init
old_belkin_init
(
void
)
int
__init
old_belkin_init
(
void
)
...
@@ -98,16 +98,12 @@ static void old_belkin_open(dongle_t *self, struct qos_info *qos)
...
@@ -98,16 +98,12 @@ static void old_belkin_open(dongle_t *self, struct qos_info *qos)
qos
->
baud_rate
.
bits
&=
IR_9600
;
qos
->
baud_rate
.
bits
&=
IR_9600
;
/* Needs at least 10 ms (totally wild guess, can do probably better) */
/* Needs at least 10 ms (totally wild guess, can do probably better) */
qos
->
min_turn_time
.
bits
=
0x01
;
qos
->
min_turn_time
.
bits
=
0x01
;
MOD_INC_USE_COUNT
;
}
}
static
void
old_belkin_close
(
dongle_t
*
self
)
static
void
old_belkin_close
(
dongle_t
*
self
)
{
{
/* Power off dongle */
/* Power off dongle */
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