aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2009-12-09 06:38:52 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 19:32:42 -0400
commit3dd5ee0801ee10e5632b40fd8d0495417b32910a (patch)
tree6c2aa9d418d32fb8c59d237ca154f9e273dd1d17 /include/media
parent2096a5dcf9704f5a86ecba37169eb813aaf0431c (diff)
[media] v4l: subdev: Uninline the v4l2_subdev_init function
The function isn't small or performance sensitive enough to be inlined. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-subdev.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
index 474ef009fd3d..3276065022ef 100644
--- a/include/media/v4l2-subdev.h
+++ b/include/media/v4l2-subdev.h
@@ -487,19 +487,8 @@ static inline void *v4l2_get_subdev_hostdata(const struct v4l2_subdev *sd)
487 return sd->host_priv; 487 return sd->host_priv;
488} 488}
489 489
490static inline void v4l2_subdev_init(struct v4l2_subdev *sd, 490void v4l2_subdev_init(struct v4l2_subdev *sd,
491 const struct v4l2_subdev_ops *ops) 491 const struct v4l2_subdev_ops *ops);
492{
493 INIT_LIST_HEAD(&sd->list);
494 BUG_ON(!ops);
495 sd->ops = ops;
496 sd->v4l2_dev = NULL;
497 sd->flags = 0;
498 sd->name[0] = '\0';
499 sd->grp_id = 0;
500 sd->dev_priv = NULL;
501 sd->host_priv = NULL;
502}
503 492
504/* Call an ops of a v4l2_subdev, doing the right checks against 493/* Call an ops of a v4l2_subdev, doing the right checks against
505 NULL pointers. 494 NULL pointers.