Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343934
b: refs/heads/master
c: 1438be5
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin authored and Mauro Carvalho Chehab committed Nov 22, 2012
1 parent 7237097 commit 5b964fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0dc2d8496191510ab237bff969480d8318705625
refs/heads/master: 1438be56ade16653584f70a2e2a1c11197291271
10 changes: 8 additions & 2 deletions trunk/drivers/media/platform/soc_camera/soc_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,11 +645,17 @@ static ssize_t soc_camera_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{
struct soc_camera_device *icd = file->private_data;
int err = -EINVAL;
struct soc_camera_host *ici = to_soc_camera_host(icd->parent);

dev_dbg(icd->pdev, "read called, buf %p\n", buf);

if (ici->ops->init_videobuf2 && icd->vb2_vidq.io_modes & VB2_READ)
return vb2_read(&icd->vb2_vidq, buf, count, ppos,
file->f_flags & O_NONBLOCK);

dev_err(icd->pdev, "camera device read not implemented\n");

return err;
return -EINVAL;
}

static int soc_camera_mmap(struct file *file, struct vm_area_struct *vma)
Expand Down

0 comments on commit 5b964fd

Please sign in to comment.