[media] exynos4-is: Refactor vidioc_s_fmt, vidioc_try_fmt handlers
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 31 May 2013 16:47:02 +0000 (13:47 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 13 Jun 2013 01:05:14 +0000 (22:05 -0300)
commit7536b4240f1bdc71f83cf008160e71c38f7ac9ff
treeae55995ac4169a6691c5d4ac9e8fd1b6f4954f85
parentf525e176f938f31a7335ce2bfec433236e0d8d6a
[media] exynos4-is: Refactor vidioc_s_fmt, vidioc_try_fmt handlers

Remove duplicated code in the vidioc_try_fmt and vidioc_s_fmt handlers.
This is a pre-requsite to allow successful fimc.capture video open even
if its corresponding media entities are not linked into a complete
pipeline.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/fimc-capture.c