OpenCloudOS-Kernel/drivers/media/platform/exynos4-is
Hans Verkuil f7234138f1 [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config
If a subdevice pad op is called from a bridge driver, then there is
no v4l2_subdev_fh struct that can be passed to the subdevice. This
made it hard to use such subdevs from a bridge driver.

This patch replaces the v4l2_subdev_fh pointer by a v4l2_subdev_pad_config
pointer in the pad ops. This allows bridge drivers to use the various
try_ pad ops by creating a v4l2_subdev_pad_config struct and passing it
along to the pad op.

The v4l2_subdev_get_try_* macros had to be changed because of this, so
I also took the opportunity to use the full name of the v4l2_subdev_get_try_*
functions in the __V4L2_SUBDEV_MK_GET_TRY macro arguments: if you now do
'git grep v4l2_subdev_get_try_format' you will actually find the header
where it is defined.

One remark regarding the drivers/staging/media/davinci_vpfe patches: the
*_init_formats() functions assumed that fh could be NULL. However, that's
not true for this driver, it's always set. This is almost certainly a copy
and paste from the omap3isp driver. I've updated the code to reflect the
fact that fh is never NULL.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-03-23 11:41:36 -07:00
..
Kconfig [media] Remove references to non-existent PLAT_S5P symbol 2014-10-24 09:35:27 -02:00
Makefile [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver 2014-03-14 10:37:12 -03:00
common.c [media] exynos4-is: Remove support for non-dt platforms 2014-05-23 18:52:54 -03:00
common.h [media] exynos4-is: Move __fimc_videoc_querycap() function to the common module 2013-06-12 22:05:41 -03:00
fimc-capture.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
fimc-core.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fimc-core.h [media] platform: Make use of media_bus_format enum 2014-11-14 17:54:08 -02:00
fimc-is-command.h [media] exynos4-is: Add Exynos4x12 FIMC-IS driver 2013-04-04 19:59:24 -03:00
fimc-is-errno.c [media] fimc-is-param: get rid of warnings 2014-08-26 18:52:12 -03:00
fimc-is-errno.h [media] fimc-is-param: get rid of warnings 2014-08-26 18:52:12 -03:00
fimc-is-i2c.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fimc-is-i2c.h [media] exynos4-is: Add FIMC-IS ISP I2C bus driver 2013-04-04 20:04:49 -03:00
fimc-is-param.c [media] fimc-is-param: get rid of warnings 2014-08-26 18:52:12 -03:00
fimc-is-param.h [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver 2014-03-14 10:37:12 -03:00
fimc-is-regs.c [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver 2014-03-14 10:37:12 -03:00
fimc-is-regs.h [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver 2014-03-14 10:37:12 -03:00
fimc-is-sensor.c [media] exynos4-is: Use external s5k6a3 sensor driver 2014-03-14 10:34:13 -03:00
fimc-is-sensor.h [media] exynos4-is: Use external s5k6a3 sensor driver 2014-03-14 10:34:13 -03:00
fimc-is.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
fimc-is.h [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver 2014-03-14 10:37:12 -03:00
fimc-isp-video.c [media] exynos4-is: fix some warnings when compiling on arm64 2014-09-26 06:51:01 -03:00
fimc-isp-video.h [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver 2014-03-14 10:37:12 -03:00
fimc-isp.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
fimc-isp.h [media] exynos4-is: Remove support for non-dt platforms 2014-05-23 18:52:54 -03:00
fimc-lite-reg.c [media] platform: Make use of media_bus_format enum 2014-11-14 17:54:08 -02:00
fimc-lite-reg.h [media] exynos4-is: Add Exynos5250 SoC support to fimc-lite driver 2013-06-28 15:22:22 -03:00
fimc-lite.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
fimc-lite.h [media] exynos4-is: Remove support for non-dt platforms 2014-05-23 18:52:54 -03:00
fimc-m2m.c [media] s5p-fimc: Reuse calculated sizes 2014-05-13 20:06:58 -03:00
fimc-reg.c [media] platform: Make use of media_bus_format enum 2014-11-14 17:54:08 -02:00
fimc-reg.h [media] exynos4-is: Correct input DMA YUV order configuration 2013-04-04 20:23:53 -03:00
media-dev.c media: platform: exynos4-is: drop owner assignment from platform_drivers 2014-10-20 16:20:46 +02:00
media-dev.h [media] exynos4-is: Remove support for non-dt platforms 2014-05-23 18:52:54 -03:00
mipi-csis.c [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config 2015-03-23 11:41:36 -07:00
mipi-csis.h