[media] V4L2: add a device pointer to struct v4l2_subdev
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 10 Jun 2013 18:07:35 +0000 (15:07 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 19:28:36 +0000 (16:28 -0300)
commit668773b84604926519e2baf444f382f88d799d41
treecd41634a511a1040e2fbe62fe9227a64ce009fb7
parentff5430de70e8137daccecfa1211509f95fcc8d25
[media] V4L2: add a device pointer to struct v4l2_subdev

It is often useful to have simple means to get from a subdevice to the
underlying physical device. This patch adds such a pointer to struct
v4l2_subdev and sets it accordingly in the I2C and SPI cases.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-subdev.h