V4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead

Remove the priv field and let video_get/set_drvdata use dev_get_drvdata
and dev_set_drvdata instead.

Convert all drivers that still used priv directly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Hans Verkuil
2008-08-23 07:24:07 -03:00
committed by Mauro Carvalho Chehab
parent e138c592b5
commit 601e9444f2
23 changed files with 111 additions and 119 deletions

View File

@@ -346,7 +346,7 @@ int pwc_video_do_ioctl(struct inode *inode, struct file *file,
if (vdev == NULL)
return -EFAULT;
pdev = vdev->priv;
pdev = video_get_drvdata(vdev);
if (pdev == NULL)
return -EFAULT;