提交 c5a766ce 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[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: NSakari Ailus <sakari.ailus@iki.fi>
Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 ae184cda
...@@ -545,7 +545,7 @@ struct v4l2_subdev { ...@@ -545,7 +545,7 @@ struct v4l2_subdev {
#define media_entity_to_v4l2_subdev(ent) \ #define media_entity_to_v4l2_subdev(ent) \
container_of(ent, struct v4l2_subdev, entity) container_of(ent, struct v4l2_subdev, entity)
#define vdev_to_v4l2_subdev(vdev) \ #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 * Used for storing subdev information per file handle
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册