[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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:44:26 +0000 (11:44 +0900)
commit91fdbc9db28d51e321f4f37806f05d46154db973
treef9183bf4d560bf19458fd91490e9db059ab38c90
parent9e15a98b9a2c42b2712987f6c7b02f48a2bab2ff
[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