]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gpu: drm: replace of_graph_get_next_endpoint()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 31 Oct 2024 22:42:07 +0000 (22:42 +0000)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 12 Nov 2024 12:05:35 +0000 (13:05 +0100)
commit17558f97fe62fbe14757880a0aa998bfd194ea95
tree8e98657d7c0a8cee04c74694dfe93fe249a937b9
parentd84927a4ad9244c974061b6299c5169399813ddb
gpu: drm: replace of_graph_get_next_endpoint()

From DT point of view, in general, drivers should be asking for a
specific port number because their function is fixed in the binding.

of_graph_get_next_endpoint() doesn't match to this concept.

Simply replace

- of_graph_get_next_endpoint(xxx, NULL);
+ of_graph_get_endpoint_by_regs(xxx, 0, -1);

Link: https://lore.kernel.org/r/20240202174941.GA310089-robh@kernel.org
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/87frob3neo.wl-kuninori.morimoto.gx@renesas.com
drivers/gpu/drm/drm_of.c
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c
drivers/gpu/drm/tiny/arcpgu.c