From: Sakari Ailus Date: Thu, 16 Feb 2012 01:58:12 +0000 (-0300) Subject: [media] v4l: vdev_to_v4l2_subdev() should have return type "struct v4l2_subdev *" X-Git-Tag: firefly_0821_release~3680^2~275^2~2499 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c5a766ceb497078459115fcbd1412917083aa4a5;p=firefly-linux-kernel-4.4.55.git [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 Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index feab950bc8ab..bcaf6b80bb20 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h @@ -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