aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2012-02-15 20:58:12 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-10 14:01:02 -0400
commitc5a766ceb497078459115fcbd1412917083aa4a5 (patch)
treee59ad71e3d72df78598a554f341b9978376dd1d3 /include/media
parentae184cda8d0eebfea6cf217abc3f94a7cfffe24d (diff)
[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>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-subdev.h2
1 files changed, 1 insertions, 1 deletions
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 {
545#define media_entity_to_v4l2_subdev(ent) \ 545#define media_entity_to_v4l2_subdev(ent) \
546 container_of(ent, struct v4l2_subdev, entity) 546 container_of(ent, struct v4l2_subdev, entity)
547#define vdev_to_v4l2_subdev(vdev) \ 547#define vdev_to_v4l2_subdev(vdev) \
548 video_get_drvdata(vdev) 548 ((struct v4l2_subdev *)video_get_drvdata(vdev))
549 549
550/* 550/*
551 * Used for storing subdev information per file handle 551 * Used for storing subdev information per file handle