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
080c2226
Commit
080c2226
authored
May 20, 2008
by
Arnd Bergmann
Committed by
Jonathan Corbet
Jun 20, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ds1620: BKL pushdown
Signed-off-by:
Arnd Bergmann
<
arnd@arndb.de
>
parent
7ccef463
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
drivers/char/ds1620.c
drivers/char/ds1620.c
+8
-1
No files found.
drivers/char/ds1620.c
View file @
080c2226
...
...
@@ -8,6 +8,7 @@
#include <linux/proc_fs.h>
#include <linux/capability.h>
#include <linux/init.h>
#include <linux/smp_lock.h>
#include <asm/hardware.h>
#include <asm/mach-types.h>
...
...
@@ -208,6 +209,12 @@ static void ds1620_read_state(struct therm *therm)
therm
->
hi
=
cvt_9_to_int
(
ds1620_in
(
THERM_READ_TH
,
9
));
}
static
int
ds1620_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
cycle_kernel_lock
();
return
nonseekable_open
(
inode
,
file
);
}
static
ssize_t
ds1620_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ptr
)
{
...
...
@@ -336,7 +343,7 @@ static struct proc_dir_entry *proc_therm_ds1620;
static
const
struct
file_operations
ds1620_fops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
nonseekable
_open
,
.
open
=
ds1620
_open
,
.
read
=
ds1620_read
,
.
ioctl
=
ds1620_ioctl
,
};
...
...
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