RE: [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
Hi, > From: Patrick DELAUNAY > Sent: mercredi 9 septembre 2020 17:44 > > Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the driver > can > support live DT. > > Signed-off-by: Patrick Delaunay > --- > > drivers/video/stm32/stm32_ltdc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Applied to u-boot-stm/next, thanks! Regards Patrick
Re: [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
Hi Patrick On 9/9/20 5:44 PM, Patrick Delaunay wrote: > Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the > driver can support live DT. > > Signed-off-by: Patrick Delaunay > --- > > 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, ); > if (ret) { > - ret = fdtdec_decode_display_timing(gd->fdt_blob, > -dev_of_offset(panel), > + ret = ofnode_decode_display_timing(dev_ofnode(panel), > 0, ); > if (ret) { > dev_err(dev, "decode display timing error %d\n", ret); Reviewed-by: Patrice Chotard Thanks
Re: [PATCH 1/2] video: stm32_ltdc: Convert to use APIs which support live DT
Reviewed-by: Yannick Fertré On 9/9/20 5:44 PM, Patrick Delaunay wrote: > Use ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the > driver can support live DT. > > Signed-off-by: Patrick Delaunay > --- > > 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, ); > if (ret) { > - ret = fdtdec_decode_display_timing(gd->fdt_blob, > -dev_of_offset(panel), > + ret = ofnode_decode_display_timing(dev_ofnode(panel), > 0, ); > if (ret) { > dev_err(dev, "decode display timing error %d\n", ret); >