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
180c0aec
Commit
180c0aec
authored
Mar 08, 2004
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IRDA]: Make irda_start_timer inline rather than exporting.
parent
18111d02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
26 deletions
+12
-26
include/net/irda/timer.h
include/net/irda/timer.h
+12
-2
net/irda/irsyms.c
net/irda/irsyms.c
+0
-1
net/irda/timer.c
net/irda/timer.c
+0
-23
No files found.
include/net/irda/timer.h
View file @
180c0aec
...
@@ -71,8 +71,18 @@ struct lap_cb;
...
@@ -71,8 +71,18 @@ struct lap_cb;
typedef
void
(
*
TIMER_CALLBACK
)(
void
*
);
typedef
void
(
*
TIMER_CALLBACK
)(
void
*
);
void
irda_start_timer
(
struct
timer_list
*
ptimer
,
int
timeout
,
void
*
data
,
static
inline
void
irda_start_timer
(
struct
timer_list
*
ptimer
,
int
timeout
,
TIMER_CALLBACK
callback
);
void
*
data
,
TIMER_CALLBACK
callback
)
{
ptimer
->
function
=
(
void
(
*
)(
unsigned
long
))
callback
;
ptimer
->
data
=
(
unsigned
long
)
data
;
/* Set new value for timer (update or add timer).
* We use mod_timer() because it's more efficient and also
* safer with respect to race conditions - Jean II */
mod_timer
(
ptimer
,
jiffies
+
timeout
);
}
void
irlap_start_slot_timer
(
struct
irlap_cb
*
self
,
int
timeout
);
void
irlap_start_slot_timer
(
struct
irlap_cb
*
self
,
int
timeout
);
void
irlap_start_query_timer
(
struct
irlap_cb
*
self
,
int
timeout
);
void
irlap_start_query_timer
(
struct
irlap_cb
*
self
,
int
timeout
);
...
...
net/irda/irsyms.c
View file @
180c0aec
...
@@ -97,7 +97,6 @@ EXPORT_SYMBOL(irda_task_execute);
...
@@ -97,7 +97,6 @@ EXPORT_SYMBOL(irda_task_execute);
EXPORT_SYMBOL
(
irda_task_next_state
);
EXPORT_SYMBOL
(
irda_task_next_state
);
EXPORT_SYMBOL
(
irda_task_delete
);
EXPORT_SYMBOL
(
irda_task_delete
);
EXPORT_SYMBOL
(
irda_start_timer
);
#ifdef CONFIG_IRDA_DEBUG
#ifdef CONFIG_IRDA_DEBUG
__u32
irda_debug
=
IRDA_DEBUG_LEVEL
;
__u32
irda_debug
=
IRDA_DEBUG_LEVEL
;
...
...
net/irda/timer.c
View file @
180c0aec
...
@@ -41,29 +41,6 @@ static void irlap_wd_timer_expired(void* data);
...
@@ -41,29 +41,6 @@ static void irlap_wd_timer_expired(void* data);
static
void
irlap_backoff_timer_expired
(
void
*
data
);
static
void
irlap_backoff_timer_expired
(
void
*
data
);
static
void
irlap_media_busy_expired
(
void
*
data
);
static
void
irlap_media_busy_expired
(
void
*
data
);
/*
* Function irda_start_timer (timer, timeout)
*
* Start an IrDA timer
*
*/
void
irda_start_timer
(
struct
timer_list
*
ptimer
,
int
timeout
,
void
*
data
,
TIMER_CALLBACK
callback
)
{
/*
* For most architectures void * is the same as unsigned long, but
* at least we try to use void * as long as possible. Since the
* timer functions use unsigned long, we cast the function here
*/
ptimer
->
function
=
(
void
(
*
)(
unsigned
long
))
callback
;
ptimer
->
data
=
(
unsigned
long
)
data
;
/* Set new value for timer (update or add timer).
* We use mod_timer() because it's more efficient and also
* safer with respect to race conditions - Jean II */
mod_timer
(
ptimer
,
jiffies
+
timeout
);
}
void
irlap_start_slot_timer
(
struct
irlap_cb
*
self
,
int
timeout
)
void
irlap_start_slot_timer
(
struct
irlap_cb
*
self
,
int
timeout
)
{
{
irda_start_timer
(
&
self
->
slot_timer
,
timeout
,
(
void
*
)
self
,
irda_start_timer
(
&
self
->
slot_timer
,
timeout
,
(
void
*
)
self
,
...
...
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