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:

committed by
Mauro Carvalho Chehab

parent
e138c592b5
commit
601e9444f2
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user