From: Patrick Delaunay Date: Wed, 9 Sep 2020 15:44:13 +0000 (+0200) Subject: video: stm32_dsi: Convert to use APIs which support live DT X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a04616be1b56512e407a86bade58c3e6cd948be0;p=u-boot.git video: stm32_dsi: Convert to use APIs which support live DT Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the driver can support live DT. Signed-off-by: Patrick Delaunay Reviewed-by: Simon Glass Reviewed-by: Yannick Fertré --- diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index 283151398b..9d5abacc2b 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -359,8 +359,7 @@ static int stm32_dsi_attach(struct udevice *dev) ret = panel_get_display_timing(priv->panel, &timings); if (ret) { - ret = fdtdec_decode_display_timing(gd->fdt_blob, - dev_of_offset(priv->panel), + ret = ofnode_decode_display_timing(dev_ofnode(priv->panel), 0, &timings); if (ret) { dev_err(dev, "decode display timing error %d\n", ret);