[media] v4l: vdev_to_v4l2_subdev() should have return type "struct v4l2_subdev *"
authorSakari Ailus <sakari.ailus@iki.fi>
Thu, 16 Feb 2012 01:58:12 +0000 (22:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Apr 2012 18:01:02 +0000 (15:01 -0300)
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>
include/media/v4l2-subdev.h

index feab950bc8abdf3737ddf78e4709e7358613a28b..bcaf6b80bb206efc9e84ff06c018fb53ed29b778 100644 (file)
@@ -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