Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
107207aa
Commit
107207aa
authored
Aug 05, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
parents
403fe5ae
3873658b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
20 deletions
+2
-20
drivers/sbus/char/vfc.h
drivers/sbus/char/vfc.h
+0
-2
drivers/sbus/char/vfc_dev.c
drivers/sbus/char/vfc_dev.c
+0
-1
drivers/sbus/char/vfc_i2c.c
drivers/sbus/char/vfc_i2c.c
+2
-17
No files found.
drivers/sbus/char/vfc.h
View file @
107207aa
...
...
@@ -129,8 +129,6 @@ struct vfc_dev {
struct
vfc_regs
*
phys_regs
;
unsigned
int
control_reg
;
struct
semaphore
device_lock_sem
;
struct
timer_list
poll_timer
;
wait_queue_head_t
poll_wait
;
int
instance
;
int
busy
;
unsigned
long
which_io
;
...
...
drivers/sbus/char/vfc_dev.c
View file @
107207aa
...
...
@@ -137,7 +137,6 @@ int init_vfc_devstruct(struct vfc_dev *dev, int instance)
dev
->
instance
=
instance
;
init_MUTEX
(
&
dev
->
device_lock_sem
);
dev
->
control_reg
=
0
;
init_waitqueue_head
(
&
dev
->
poll_wait
);
dev
->
busy
=
0
;
return
0
;
}
...
...
drivers/sbus/char/vfc_i2c.c
View file @
107207aa
...
...
@@ -79,25 +79,10 @@ int vfc_pcf8584_init(struct vfc_dev *dev)
return
0
;
}
void
vfc_i2c_delay_wakeup
(
struct
vfc_dev
*
dev
)
{
/* Used to profile code and eliminate too many delays */
VFC_I2C_DEBUG_PRINTK
((
"vfc%d: Delaying
\n
"
,
dev
->
instance
));
wake_up
(
&
dev
->
poll_wait
);
}
void
vfc_i2c_delay_no_busy
(
struct
vfc_dev
*
dev
,
unsigned
long
usecs
)
{
DEFINE_WAIT
(
wait
);
init_timer
(
&
dev
->
poll_timer
);
dev
->
poll_timer
.
expires
=
jiffies
+
usecs_to_jiffies
(
usecs
);
dev
->
poll_timer
.
data
=
(
unsigned
long
)
dev
;
dev
->
poll_timer
.
function
=
(
void
*
)(
unsigned
long
)
vfc_i2c_delay_wakeup
;
add_timer
(
&
dev
->
poll_timer
);
prepare_to_wait
(
&
dev
->
poll_wait
,
&
wait
,
TASK_UNINTERRUPTIBLE
);
schedule
();
del_timer
(
&
dev
->
poll_timer
);
finish_wait
(
&
dev
->
poll_wait
,
&
wait
);
set_current_state
(
TASK_UNINTERRUPTIBLE
);
schedule_timeout
(
usecs_to_jiffies
(
usecs
));
}
void
inline
vfc_i2c_delay
(
struct
vfc_dev
*
dev
)
...
...
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