[media] soc_camera: replace vdev->parent by vdev->v4l2_dev
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 10 Jun 2013 12:27:41 +0000 (09:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:02:24 +0000 (11:02 -0300)
commit14381c26771f1a7d6acc57e4c944a9813596e6cf
treeda4ee73a4940a5e35045dccbd65dbb6591f5c8e2
parent9e882e3bc97c7774b93f3db483d2e75767b5cad1
[media] soc_camera: replace vdev->parent by vdev->v4l2_dev

The parent field will eventually disappear to be replaced by v4l2_dev.
soc_camera does provide a v4l2_device struct but did not point to it in
struct video_device. This is now fixed.
Now the video nodes can be found under the correct platform bus, and
the advanced debug ioctls work correctly as well (the core implementation
of those ioctls requires that v4l2_dev is set correctly).

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/soc_camera.c
include/media/soc_camera.h