diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2009-08-25 10:47:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:19:13 -0400 |
commit | 2aa58db47f5c70635ea278f6a5ff9e1e920bfe6a (patch) | |
tree | e608f5c3fdb59ac0739fb70b26bd8c43b86ffa9f /drivers/media | |
parent | 85f8be68125163085392ed4fc30adcbea641586d (diff) |
V4L/DVB (12532): soc-camera: Use camera device object for core output
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/soc_camera.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c index dd023bdb189e..c6cccdf8daf5 100644 --- a/drivers/media/video/soc_camera.c +++ b/drivers/media/video/soc_camera.c | |||
@@ -297,7 +297,7 @@ static int soc_camera_set_fmt(struct soc_camera_file *icf, | |||
297 | return ret; | 297 | return ret; |
298 | } else if (!icd->current_fmt || | 298 | } else if (!icd->current_fmt || |
299 | icd->current_fmt->fourcc != pix->pixelformat) { | 299 | icd->current_fmt->fourcc != pix->pixelformat) { |
300 | dev_err(ici->v4l2_dev.dev, | 300 | dev_err(&icd->dev, |
301 | "Host driver hasn't set up current format correctly!\n"); | 301 | "Host driver hasn't set up current format correctly!\n"); |
302 | return -EINVAL; | 302 | return -EINVAL; |
303 | } | 303 | } |
@@ -426,7 +426,6 @@ static int soc_camera_close(struct file *file) | |||
426 | struct soc_camera_file *icf = file->private_data; | 426 | struct soc_camera_file *icf = file->private_data; |
427 | struct soc_camera_device *icd = icf->icd; | 427 | struct soc_camera_device *icd = icf->icd; |
428 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); | 428 | struct soc_camera_host *ici = to_soc_camera_host(icd->dev.parent); |
429 | struct video_device *vdev = icd->vdev; | ||
430 | 429 | ||
431 | mutex_lock(&icd->video_lock); | 430 | mutex_lock(&icd->video_lock); |
432 | icd->use_count--; | 431 | icd->use_count--; |
@@ -446,7 +445,7 @@ static int soc_camera_close(struct file *file) | |||
446 | 445 | ||
447 | vfree(icf); | 446 | vfree(icf); |
448 | 447 | ||
449 | dev_dbg(vdev->parent, "camera device close\n"); | 448 | dev_dbg(&icd->dev, "camera device close\n"); |
450 | 449 | ||
451 | return 0; | 450 | return 0; |
452 | } | 451 | } |
@@ -456,10 +455,9 @@ static ssize_t soc_camera_read(struct file *file, char __user *buf, | |||
456 | { | 455 | { |
457 | struct soc_camera_file *icf = file->private_data; | 456 | struct soc_camera_file *icf = file->private_data; |
458 | struct soc_camera_device *icd = icf->icd; | 457 | struct soc_camera_device *icd = icf->icd; |
459 | struct video_device *vdev = icd->vdev; | ||
460 | int err = -EINVAL; | 458 | int err = -EINVAL; |
461 | 459 | ||
462 | dev_err(vdev->parent, "camera device read not implemented\n"); | 460 | dev_err(&icd->dev, "camera device read not implemented\n"); |
463 | 461 | ||
464 | return err; | 462 | return err; |
465 | } | 463 | } |