diff mbox series

[v1,2/4] video: stm32: stm32_dsi: copy DSI fields

Message ID 20200624084542.18098-3-yannick.fertre@st.com
State Accepted
Commit 7084dd8c4bf212cf4b25dc1cf34d35f9b5999f9d
Headers show
Series rework DSI characteristics | expand

Commit Message

Yannick Fertre June 24, 2020, 8:45 a.m. UTC
Copy the DSI data link characteristics from panel
platform data to mipi DSI device.

Signed-off-by: Yannick Fertre <yannick.fertre at st.com>
---
 drivers/video/stm32/stm32_dsi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Patrick Delaunay June 24, 2020, 1:28 p.m. UTC | #1
Hi Yannick

> From: Yannick FERTRE <yannick.fertre at st.com>
> Sent: mercredi 24 juin 2020 10:46
> 
> Copy the DSI data link characteristics from panel platform data to mipi DSI
> device.
> 
> Signed-off-by: Yannick Fertre <yannick.fertre at st.com>
> ---
>  drivers/video/stm32/stm32_dsi.c | 3 +++
>  1 file changed, 3 insertions(+)
> 

Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>

Thanks

Patrick
Anatolij Gustschin June 29, 2020, 7:02 a.m. UTC | #2
On Wed, 24 Jun 2020 10:45:40 +0200
Yannick Fertre yannick.fertre at st.com wrote:

> Copy the DSI data link characteristics from panel
> platform data to mipi DSI device.
> 
> Signed-off-by: Yannick Fertre <yannick.fertre at st.com>
> ---
>  drivers/video/stm32/stm32_dsi.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied to u-boot-video/master, thanks!

--
Anatolij
diff mbox series

Patch

diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c
index 04796435f1..c9b1633cf7 100644
--- a/drivers/video/stm32/stm32_dsi.c
+++ b/drivers/video/stm32/stm32_dsi.c
@@ -354,6 +354,9 @@  static int stm32_dsi_attach(struct udevice *dev)
 
 	mplat = dev_get_platdata(priv->panel);
 	mplat->device = &priv->device;
+	device->lanes = mplat->lanes;
+	device->format = mplat->format;
+	device->mode_flags = mplat->mode_flags;
 
 	ret = panel_get_display_timing(priv->panel, &timings);
 	if (ret) {