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,8 +856,8 @@ static int qcam_ioctl(struct inode *inode, struct file *file,
return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl);
}
static int qcam_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
static ssize_t qcam_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
{
struct video_device *v = video_devdata(file);
struct qcam_device *qcam=(struct qcam_device *)v;
......
......@@ -668,8 +668,8 @@ static int qcam_ioctl(struct inode *inode, struct file *file,
return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl);
}
static int qcam_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
static ssize_t qcam_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
{
struct video_device *v = video_devdata(file);
struct qcam_device *qcam=(struct qcam_device *)v;
......
......@@ -179,8 +179,8 @@ 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 int w9966_v4l_read(struct file *file, char *buf,
size_t count, loff_t *ppos);
static ssize_t w9966_v4l_read(struct file *file, char *buf,
size_t count, loff_t *ppos);
static struct file_operations w9966_fops = {
.owner = THIS_MODULE,
......@@ -867,8 +867,8 @@ static int w9966_v4l_ioctl(struct inode *inode, struct file *file,
}
// Capture data
static int w9966_v4l_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
static ssize_t w9966_v4l_read(struct file *file, char *buf,
size_t count, loff_t *ppos)
{
struct video_device *vdev = video_devdata(file);
struct w9966_dev *cam = (struct w9966_dev *)vdev->priv;
......
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