[media] exynos4-is: Make fimc-lite independent of the pipeline->subdevs array
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 8 Apr 2013 16:17:36 +0000 (13:17 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 14 Apr 2013 18:47:44 +0000 (15:47 -0300)
commit756e6e14484b3249dad9663ed1398711b62676a3
tree1914d4f3d997fde771e5433aff3ad06283f29ca0
parent488f29d00e819b178f9060fa08028b73d5f8d916
[media] exynos4-is: Make fimc-lite independent of the pipeline->subdevs array

Get the sensor subdev by walking media graph in both cases: when the
device is used as a subdev only and through video node. This allows
to not dereference the pipeline->subdevs[] array and makes the module
more generic and easier to re-use in other media driver.

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-lite.c