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
Kirill Smelkov
linux
Commits
d88c2426
Commit
d88c2426
authored
Aug 19, 2014
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
carma-fpga: switch to simple_read_from_buffer()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
1a37f5ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
drivers/misc/carma/carma-fpga-program.c
drivers/misc/carma/carma-fpga-program.c
+2
-7
No files found.
drivers/misc/carma/carma-fpga-program.c
View file @
d88c2426
...
...
@@ -749,13 +749,8 @@ static ssize_t fpga_read(struct file *filp, char __user *buf, size_t count,
loff_t
*
f_pos
)
{
struct
fpga_dev
*
priv
=
filp
->
private_data
;
count
=
min_t
(
size_t
,
priv
->
bytes
-
*
f_pos
,
count
);
if
(
copy_to_user
(
buf
,
priv
->
vb
.
vaddr
+
*
f_pos
,
count
))
return
-
EFAULT
;
*
f_pos
+=
count
;
return
count
;
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
priv
->
vb
.
vaddr
,
priv
->
bytes
);
}
static
loff_t
fpga_llseek
(
struct
file
*
filp
,
loff_t
offset
,
int
origin
)
...
...
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