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
e712ef3f
Commit
e712ef3f
authored
Oct 04, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: actisys dongle module conversion.
parent
f8a0efb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
drivers/net/irda/actisys.c
drivers/net/irda/actisys.c
+12
-16
No files found.
drivers/net/irda/actisys.c
View file @
e712ef3f
...
@@ -64,21 +64,21 @@ static __u32 baud_rates[] = { 9600, 19200, 57600, 115200, 38400 };
...
@@ -64,21 +64,21 @@ static __u32 baud_rates[] = { 9600, 19200, 57600, 115200, 38400 };
#define MAX_SPEEDS 5
#define MAX_SPEEDS 5
static
struct
dongle_reg
dongle
=
{
static
struct
dongle_reg
dongle
=
{
Q_NULL
,
.
type
=
IRDA_ACTISYS_DONGLE
,
IRDA_ACTISYS_DONGLE
,
.
open
=
actisys_open
,
actisys_open
,
.
close
=
actisys_close
,
actisys_close
,
.
reset
=
actisys_reset
,
actisys_reset
,
.
change_speed
=
actisys_change_speed
,
actisys_change_speed
,
.
owner
=
THIS_MODULE
,
};
};
static
struct
dongle_reg
dongle_plus
=
{
static
struct
dongle_reg
dongle_plus
=
{
Q_NULL
,
.
type
=
IRDA_ACTISYS_PLUS_DONGLE
,
IRDA_ACTISYS_PLUS_DONGLE
,
.
open
=
actisys_open
,
actisys_open
,
.
close
=
actisys_close
,
actisys_close
,
.
reset
=
actisys_reset
,
actisys_reset
,
.
change_speed
=
actisys_change_speed
,
actisys_change_speed
,
.
owner
=
THIS_MODULE
,
};
};
/*
/*
...
@@ -128,16 +128,12 @@ static void actisys_open(dongle_t *self, struct qos_info *qos)
...
@@ -128,16 +128,12 @@ static void actisys_open(dongle_t *self, struct qos_info *qos)
qos
->
baud_rate
.
bits
&=
~
IR_38400
;
qos
->
baud_rate
.
bits
&=
~
IR_38400
;
qos
->
min_turn_time
.
bits
=
0x7f
;
/* Needs 0.01 ms */
qos
->
min_turn_time
.
bits
=
0x7f
;
/* Needs 0.01 ms */
MOD_INC_USE_COUNT
;
}
}
static
void
actisys_close
(
dongle_t
*
self
)
static
void
actisys_close
(
dongle_t
*
self
)
{
{
/* Power off the dongle */
/* Power off the 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