video: stm32_ltdc: Convert to use APIs which support live DT
Subsystems (2)
PATCH 1/2 video: stm32_ltdc: 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.
---
drivers/video/stm32/stm32_ltdc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/video/stm32/stm32_ltdc.c +1 -2
@@ -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);
Signature · 1 line
2.17.1
PATCH 1/2 video: stm32_ltdc: Convert to use APIs which support live DT
Hi,
Quoted 12 lines
From: Patrick DELAUNAY <[email protected]>
Sent: mercredi 9 septembre 2020 17:44Use
ofnode_ordev_APIs instead offdt_andfdtdec_APIs so that the driver can support live DT.Signed-off-by Patrick Delaunay <[email protected]>---
drivers/video/stm32/stm32_ltdc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-stm/next, thanks!
Regards
Patrick
PATCH 1/2 video: stm32_ltdc: Convert to use APIs which support live DT
In reply to Patrick DelaunayQuoted 24 lines · Patrick Delaunay
Use
ofnode_ordev_APIs instead offdt_andfdtdec_APIs so that the driver can support live DT.Signed-off-by Patrick Delaunay <[email protected]>---
drivers/video/stm32/stm32_ltdc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/video/stm32/stm32_ltdc.c +1
-2@@ -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);
PATCH 1/2 video: stm32_ltdc: Convert to use APIs which support live DT
In reply to Patrick DelaunayHi Patrick
Quoted 14 lines · Patrick Delaunay
Use
ofnode_ordev_APIs instead offdt_andfdtdec_APIs so that the driver can support live DT.Signed-off-by Patrick Delaunay <[email protected]>---
drivers/video/stm32/stm32_ltdc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/video/stm32/stm32_ltdc.c +0
-0
drivers/video/stm32/stm32_ltdc.c static int stm32_ltdc_probe(struct udevice *dev) · line 372
Quoted 9 lines
drivers/video/stm32/stm32_ltdc.c +1
-2@@ -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);
Thanks
PATCH 2/2 video: stm32_dsi: Convert to use APIs which support live DT
In reply to Patrick DelaunayUse ofnode_ or dev_ APIs instead of fdt_ and fdtdec_ APIs so that the driver can support live DT.
---
drivers/video/stm32/stm32_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/video/stm32/stm32_dsi.c +1 -2
@@ -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);
Signature · 1 line
2.17.1
PATCH 2/2 video: stm32_dsi: Convert to use APIs which support live DT
Quoted 9 lines · Patrick Delaunay
Use
ofnode_ordev_APIs instead offdt_andfdtdec_APIs so that the driver can support live DT.Signed-off-by Patrick Delaunay <[email protected]>---
drivers/video/stm32/stm32_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
PATCH 2/2 video: stm32_dsi: Convert to use APIs which support live DT
In reply to Patrick DelaunayQuoted 24 lines · Patrick Delaunay
Use
ofnode_ordev_APIs instead offdt_andfdtdec_APIs so that the driver can support live DT.Signed-off-by Patrick Delaunay <[email protected]>---
drivers/video/stm32/stm32_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/video/stm32/stm32_dsi.c +1
-2@@ -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);
PATCH 2/2 video: stm32_dsi: Convert to use APIs which support live DT
In reply to Patrick DelaunayHi,
Quoted 12 lines
From: Patrick DELAUNAY <[email protected]>
Sent: mercredi 9 septembre 2020 17:44Use
ofnode_ordev_APIs instead offdt_andfdtdec_APIs so that the driver can support live DT.Signed-off-by Patrick Delaunay <[email protected]>---
drivers/video/stm32/stm32_dsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied to u-boot-stm/next, thanks!
Regards
Patrick