]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: stm32_dsi: Convert to use APIs which support live DT
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 9 Sep 2020 15:44:13 +0000 (17:44 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 2 Oct 2020 13:05:14 +0000 (15:05 +0200)
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>
drivers/video/stm32/stm32_dsi.c

index 283151398bbf5ae1a4f8836b3a6a2d47ddf77cd8..9d5abacc2bff784b28fb00b2531c8aa5be643369 100644 (file)
@@ -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);