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
4ffa2465
Commit
4ffa2465
authored
Oct 04, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: girbil dongle module conversion.
parent
e31f7296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
drivers/net/irda/girbil.c
drivers/net/irda/girbil.c
+6
-10
No files found.
drivers/net/irda/girbil.c
View file @
4ffa2465
...
@@ -63,12 +63,12 @@ static int girbil_change_speed(struct irda_task *task);
...
@@ -63,12 +63,12 @@ static int girbil_change_speed(struct irda_task *task);
#define GIRBIL_LOAD 0x51
/* Load the new baud rate value */
#define GIRBIL_LOAD 0x51
/* Load the new baud rate value */
static
struct
dongle_reg
dongle
=
{
static
struct
dongle_reg
dongle
=
{
Q_NULL
,
.
type
=
IRDA_GIRBIL_DONGLE
,
IRDA_GIRBIL_DONGLE
,
.
open
=
girbil_open
,
girbil_open
,
.
close
=
girbil_close
,
girbil_close
,
.
reset
=
girbil_reset
,
girbil_reset
,
.
change_speed
=
girbil_change_speed
,
girbil_change_speed
,
.
owner
=
THIS_MODULE
,
};
};
int
__init
girbil_init
(
void
)
int
__init
girbil_init
(
void
)
...
@@ -85,16 +85,12 @@ static void girbil_open(dongle_t *self, struct qos_info *qos)
...
@@ -85,16 +85,12 @@ static void girbil_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
=
0x03
;
qos
->
min_turn_time
.
bits
=
0x03
;
MOD_INC_USE_COUNT
;
}
}
static
void
girbil_close
(
dongle_t
*
self
)
static
void
girbil_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