[PATCH 07/11] video: dw_mipi_dsi: Staticize and constify driver ops

Marek Vasut marek.vasut+renesas at mailbox.org
Sun May 10 19:17:02 CEST 2026


Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.

Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
Cc: Anatolij Gustschin <ag.dev.uboot at gmail.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 drivers/video/dw_mipi_dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c
index c74fe678d12..ec5d4c81812 100644
--- a/drivers/video/dw_mipi_dsi.c
+++ b/drivers/video/dw_mipi_dsi.c
@@ -837,7 +837,7 @@ static int dw_mipi_dsi_enable(struct udevice *dev)
 	return 0;
 }
 
-struct dsi_host_ops dw_mipi_dsi_ops = {
+static const struct dsi_host_ops dw_mipi_dsi_ops = {
 	.init = dw_mipi_dsi_init,
 	.enable = dw_mipi_dsi_enable,
 };
-- 
2.53.0



More information about the U-Boot mailing list