[media] V4L: dynamically allocate video_device nodes in subdevices
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 13 Sep 2011 11:07:55 +0000 (08:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:29:01 +0000 (18:29 -0200)
commit3e0ec41c5c5ee14e27f65e28d4a616de34f59a97
tree95d4302f6a26b1494926146dedd1bb25b7834167
parent2fbdc9bd42c993a6b179a4ddb972b551644aad6e
[media] V4L: dynamically allocate video_device nodes in subdevices

Currently only very few drivers actually use video_device nodes, embedded
in struct v4l2_subdev. Allocate these nodes dynamically for those drivers
to save memory for the rest.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-device.c
include/media/v4l2-subdev.h