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
718cd36d
Commit
718cd36d
authored
Jul 30, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MEDIA]: Make read operations return correct ssize_t in {c-qcam,bw-qcam,w9966}.c
parent
f78472fa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
drivers/media/video/bw-qcam.c
drivers/media/video/bw-qcam.c
+2
-2
drivers/media/video/c-qcam.c
drivers/media/video/c-qcam.c
+2
-2
drivers/media/video/w9966.c
drivers/media/video/w9966.c
+4
-4
No files found.
drivers/media/video/bw-qcam.c
View file @
718cd36d
...
...
@@ -856,7 +856,7 @@ static int qcam_ioctl(struct inode *inode, struct file *file,
return
video_usercopy
(
inode
,
file
,
cmd
,
arg
,
qcam_do_ioctl
);
}
static
in
t
qcam_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_
t
qcam_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
video_device
*
v
=
video_devdata
(
file
);
...
...
drivers/media/video/c-qcam.c
View file @
718cd36d
...
...
@@ -668,7 +668,7 @@ static int qcam_ioctl(struct inode *inode, struct file *file,
return
video_usercopy
(
inode
,
file
,
cmd
,
arg
,
qcam_do_ioctl
);
}
static
in
t
qcam_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_
t
qcam_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
video_device
*
v
=
video_devdata
(
file
);
...
...
drivers/media/video/w9966.c
View file @
718cd36d
...
...
@@ -179,7 +179,7 @@ static int w9966_i2c_rbyte(struct w9966_dev* cam);
static
int
w9966_v4l_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
in
t
w9966_v4l_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_
t
w9966_v4l_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
struct
file_operations
w9966_fops
=
{
...
...
@@ -867,7 +867,7 @@ static int w9966_v4l_ioctl(struct inode *inode, struct file *file,
}
// Capture data
static
in
t
w9966_v4l_read
(
struct
file
*
file
,
char
*
buf
,
static
ssize_
t
w9966_v4l_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
)
{
struct
video_device
*
vdev
=
video_devdata
(
file
);
...
...
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