diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-09-09 17:44:13 +0200 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2020-10-02 15:05:14 +0200 |
commit | a04616be1b56512e407a86bade58c3e6cd948be0 (patch) | |
tree | 7e0c6fd1d4f2a300a8df169327782307f54b29c2 /drivers/video | |
parent | 28c6ba861c7aa8345e7266104776a4f259abe5b6 (diff) | |
download | u-boot-a04616be1b56512e407a86bade58c3e6cd948be0.tar.gz |
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 <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Yannick Fertré <yannick.fertre@st.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/stm32/stm32_dsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |