Commit 718cd36d authored by David S. Miller's avatar David S. Miller

[MEDIA]: Make read operations return correct ssize_t in {c-qcam,bw-qcam,w9966}.c

parent f78472fa
...@@ -856,7 +856,7 @@ static int qcam_ioctl(struct inode *inode, struct file *file, ...@@ -856,7 +856,7 @@ static int qcam_ioctl(struct inode *inode, struct file *file,
return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl); return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl);
} }
static int qcam_read(struct file *file, char *buf, static ssize_t qcam_read(struct file *file, char *buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
struct video_device *v = video_devdata(file); struct video_device *v = video_devdata(file);
......
...@@ -668,7 +668,7 @@ static int qcam_ioctl(struct inode *inode, struct file *file, ...@@ -668,7 +668,7 @@ static int qcam_ioctl(struct inode *inode, struct file *file,
return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl); return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl);
} }
static int qcam_read(struct file *file, char *buf, static ssize_t qcam_read(struct file *file, char *buf,
size_t count, loff_t *ppos) size_t count, loff_t *ppos)
{ {
struct video_device *v = video_devdata(file); struct video_device *v = video_devdata(file);
......
...@@ -179,7 +179,7 @@ static int w9966_i2c_rbyte(struct w9966_dev* cam); ...@@ -179,7 +179,7 @@ static int w9966_i2c_rbyte(struct w9966_dev* cam);
static int w9966_v4l_ioctl(struct inode *inode, struct file *file, static int w9966_v4l_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg); unsigned int cmd, unsigned long arg);
static int 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); size_t count, loff_t *ppos);
static struct file_operations w9966_fops = { static struct file_operations w9966_fops = {
...@@ -867,7 +867,7 @@ static int w9966_v4l_ioctl(struct inode *inode, struct file *file, ...@@ -867,7 +867,7 @@ static int w9966_v4l_ioctl(struct inode *inode, struct file *file,
} }
// Capture data // Capture data
static int 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) size_t count, loff_t *ppos)
{ {
struct video_device *vdev = video_devdata(file); struct video_device *vdev = video_devdata(file);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment