mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
[media] v4l: vdev_to_v4l2_subdev() should have return type "struct v4l2_subdev *"
vdev_to_v4l2_subdev() should return struct v4l2_subdev *, not void *. Fix this. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ae184cda8d
commit
c5a766ceb4
1 changed files with 1 additions and 1 deletions
|
@ -545,7 +545,7 @@ struct v4l2_subdev {
|
|||
#define media_entity_to_v4l2_subdev(ent) \
|
||||
container_of(ent, struct v4l2_subdev, entity)
|
||||
#define vdev_to_v4l2_subdev(vdev) \
|
||||
video_get_drvdata(vdev)
|
||||
((struct v4l2_subdev *)video_get_drvdata(vdev))
|
||||
|
||||
/*
|
||||
* Used for storing subdev information per file handle
|
||||
|
|
Loading…
Reference in a new issue