Skip to content

Commit

Permalink
[media] v4l: vdev_to_v4l2_subdev() should have return type "struct v4…
Browse files Browse the repository at this point in the history
…l2_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>
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Apr 10, 2012
1 parent ae184cd commit c5a766c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/media/v4l2-subdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5a766c

Please sign in to comment.