public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
@ 2020-09-09 15:44 Patrick Delaunay
  2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Patrick Delaunay @ 2020-09-09 15:44 UTC (permalink / raw)
  To: u-boot

Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the
driver can support live DT.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 drivers/video/stm32/stm32_ltdc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c
index 2f3427a32e..7fff735930 100644
--- a/drivers/video/stm32/stm32_ltdc.c
+++ b/drivers/video/stm32/stm32_ltdc.c
@@ -366,8 +366,7 @@ static int stm32_ltdc_probe(struct udevice *dev)
 
 	ret = panel_get_display_timing(panel, &timings);
 	if (ret) {
-		ret = fdtdec_decode_display_timing(gd->fdt_blob,
-						   dev_of_offset(panel),
+		ret = ofnode_decode_display_timing(dev_ofnode(panel),
 						   0, &timings);
 		if (ret) {
 			dev_err(dev, "decode display timing error %d\n", ret);
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-10-02 13:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-09 15:44 [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT Patrick Delaunay
2020-09-09 15:44 ` [PATCH 2/2] video: stm32_dsi: " Patrick Delaunay
2020-09-10 13:38   ` Simon Glass
2020-09-10 14:06   ` Yannick FERTRE
2020-10-02 13:10   ` Patrick DELAUNAY
2020-09-10 14:06 ` [PATCH 1/2] video: stm32_ltdc: " Yannick FERTRE
2020-10-02  9:43 ` Patrice CHOTARD
2020-10-02 13:09 ` Patrick DELAUNAY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox