aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/soc_camera.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-20 05:31:39 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-23 15:42:49 -0400
commit5e85e732f0ed56aa97a3ba26ac2b93ffe597a208 (patch)
tree899da0a99112d5e1b66d49d8561680f716798541 /drivers/media/video/soc_camera.c
parent27a5e6d3fcce73ceeee8f3bdc9a30c4564233800 (diff)
V4L/DVB (8428): videodev: rename 'dev' to 'parent'
The field 'dev' is not the video device, but the parent of the video device. Rename accordingly. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/soc_camera.c')
-rw-r--r--drivers/media/video/soc_camera.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
index e39b98f1eca4..58c8c39b9597 100644
--- a/drivers/media/video/soc_camera.c
+++ b/drivers/media/video/soc_camera.c
@@ -193,7 +193,7 @@ static int soc_camera_open(struct inode *inode, struct file *file)
193 mutex_lock(&video_lock); 193 mutex_lock(&video_lock);
194 194
195 vdev = video_devdata(file); 195 vdev = video_devdata(file);
196 icd = container_of(vdev->dev, struct soc_camera_device, dev); 196 icd = container_of(vdev->parent, struct soc_camera_device, dev);
197 ici = to_soc_camera_host(icd->dev.parent); 197 ici = to_soc_camera_host(icd->dev.parent);
198 198
199 if (!try_module_get(icd->ops->owner)) { 199 if (!try_module_get(icd->ops->owner)) {
@@ -258,7 +258,7 @@ static int soc_camera_close(struct inode *inode, struct file *file)
258 258
259 vfree(icf); 259 vfree(icf);
260 260
261 dev_dbg(vdev->dev, "camera device close\n"); 261 dev_dbg(vdev->parent, "camera device close\n");
262 262
263 return 0; 263 return 0;
264} 264}
@@ -271,7 +271,7 @@ static ssize_t soc_camera_read(struct file *file, char __user *buf,
271 struct video_device *vdev = icd->vdev; 271 struct video_device *vdev = icd->vdev;
272 int err = -EINVAL; 272 int err = -EINVAL;
273 273
274 dev_err(vdev->dev, "camera device read not implemented\n"); 274 dev_err(vdev->parent, "camera device read not implemented\n");
275 275
276 return err; 276 return err;
277} 277}
@@ -877,7 +877,7 @@ int soc_camera_video_start(struct soc_camera_device *icd)
877 877
878 strlcpy(vdev->name, ici->drv_name, sizeof(vdev->name)); 878 strlcpy(vdev->name, ici->drv_name, sizeof(vdev->name));
879 /* Maybe better &ici->dev */ 879 /* Maybe better &ici->dev */
880 vdev->dev = &icd->dev; 880 vdev->parent = &icd->dev;
881 vdev->type = VID_TYPE_CAPTURE; 881 vdev->type = VID_TYPE_CAPTURE;
882 vdev->current_norm = V4L2_STD_UNKNOWN; 882 vdev->current_norm = V4L2_STD_UNKNOWN;
883 vdev->fops = &soc_camera_fops; 883 vdev->fops = &soc_camera_fops;
@@ -915,7 +915,7 @@ int soc_camera_video_start(struct soc_camera_device *icd)
915 915
916 err = video_register_device(vdev, VFL_TYPE_GRABBER, vdev->minor); 916 err = video_register_device(vdev, VFL_TYPE_GRABBER, vdev->minor);
917 if (err < 0) { 917 if (err < 0) {
918 dev_err(vdev->dev, "video_register_device failed\n"); 918 dev_err(vdev->parent, "video_register_device failed\n");
919 goto evidregd; 919 goto evidregd;
920 } 920 }
921 icd->vdev = vdev; 921 icd->vdev = vdev;