[media] of: move graph helpers from drivers/media/v4l2-core to drivers/of
This patch moves the parsing helpers used to parse connected graphs in the device tree, like the video interface bindings documented in Documentation/devicetree/bindings/media/video-interfaces.txt, from drivers/media/v4l2-core/v4l2-of.c into drivers/of/base.c. This allows to reuse the same parser code from outside the V4L2 framework, most importantly from display drivers. The functions v4l2_of_get_next_endpoint, v4l2_of_get_remote_port, and v4l2_of_get_remote_port_parent are moved. They are renamed to of_graph_get_next_endpoint, of_graph_get_remote_port, and of_graph_get_remote_port_parent, respectively. Since there are not that many current users yet, switch all of them to the new functions right away. Signed-off-by:Philipp Zabel <p.zabel@pengutronix.de> Acked-by:
Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by:
Mauro Carvalho Chehab <m.chehab@samsung.com> Acked-by:
Sylwester Nawrocki <s.nawrocki@samsung.com>
Showing
- drivers/media/i2c/adv7343.c 2 additions, 2 deletionsdrivers/media/i2c/adv7343.c
- drivers/media/i2c/mt9p031.c 2 additions, 2 deletionsdrivers/media/i2c/mt9p031.c
- drivers/media/i2c/s5k5baf.c 2 additions, 1 deletiondrivers/media/i2c/s5k5baf.c
- drivers/media/i2c/tvp514x.c 2 additions, 1 deletiondrivers/media/i2c/tvp514x.c
- drivers/media/i2c/tvp7002.c 2 additions, 1 deletiondrivers/media/i2c/tvp7002.c
- drivers/media/platform/exynos4-is/fimc-is.c 3 additions, 3 deletionsdrivers/media/platform/exynos4-is/fimc-is.c
- drivers/media/platform/exynos4-is/media-dev.c 2 additions, 1 deletiondrivers/media/platform/exynos4-is/media-dev.c
- drivers/media/platform/exynos4-is/mipi-csis.c 2 additions, 1 deletiondrivers/media/platform/exynos4-is/mipi-csis.c
- drivers/media/v4l2-core/v4l2-of.c 0 additions, 117 deletionsdrivers/media/v4l2-core/v4l2-of.c
- drivers/of/base.c 118 additions, 0 deletionsdrivers/of/base.c
- include/linux/of_graph.h 46 additions, 0 deletionsinclude/linux/of_graph.h
- include/media/v4l2-of.h 1 addition, 24 deletionsinclude/media/v4l2-of.h
Loading
Please register or sign in to comment