diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-06-10 08:27:41 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-21 10:02:24 -0400 |
commit | 14381c26771f1a7d6acc57e4c944a9813596e6cf (patch) | |
tree | da4ee73a4940a5e35045dccbd65dbb6591f5c8e2 /include/media/soc_camera.h | |
parent | 9e882e3bc97c7774b93f3db483d2e75767b5cad1 (diff) |
[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>
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r-- | include/media/soc_camera.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index ff77d08c30fd..31a4bfe42194 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -346,9 +346,9 @@ static inline struct soc_camera_subdev_desc *soc_camera_i2c_to_desc(const struct | |||
346 | return client->dev.platform_data; | 346 | return client->dev.platform_data; |
347 | } | 347 | } |
348 | 348 | ||
349 | static inline struct v4l2_subdev *soc_camera_vdev_to_subdev(const struct video_device *vdev) | 349 | static inline struct v4l2_subdev *soc_camera_vdev_to_subdev(struct video_device *vdev) |
350 | { | 350 | { |
351 | struct soc_camera_device *icd = dev_get_drvdata(vdev->parent); | 351 | struct soc_camera_device *icd = video_get_drvdata(vdev); |
352 | return soc_camera_to_subdev(icd); | 352 | return soc_camera_to_subdev(icd); |
353 | } | 353 | } |
354 | 354 | ||