mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
Merge patch series "video: bridge: anx6345: Staticize and constify driver ops"
This series from Marek Vasut <marek.vasut+renesas@mailbox.org> adds "static" and "const" keywords to structs where they are missing and would be useful to have. Link: https://lore.kernel.org/r/20260510171723.56866-1-marek.vasut+renesas@mailbox.org
This commit is contained in:
@@ -403,7 +403,7 @@ static int anx6345_probe(struct udevice *dev)
|
||||
return anx6345_enable(dev);
|
||||
}
|
||||
|
||||
struct video_bridge_ops anx6345_ops = {
|
||||
static const struct video_bridge_ops anx6345_ops = {
|
||||
.attach = anx6345_attach,
|
||||
.set_backlight = anx6345_set_backlight,
|
||||
.read_edid = anx6345_read_edid,
|
||||
|
||||
@@ -116,7 +116,7 @@ static int ps8622_probe(struct udevice *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct video_bridge_ops ps8622_ops = {
|
||||
static const struct video_bridge_ops ps8622_ops = {
|
||||
.attach = ps8622_attach,
|
||||
.set_backlight = ps8622_set_backlight,
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@ static int ptn3460_attach(struct udevice *dev)
|
||||
return video_bridge_set_active(dev, true);
|
||||
}
|
||||
|
||||
struct video_bridge_ops ptn3460_ops = {
|
||||
static const struct video_bridge_ops ptn3460_ops = {
|
||||
.attach = ptn3460_attach,
|
||||
};
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ static int console_set_cursor_visible(struct udevice *dev, bool visible,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct vidconsole_ops console_ops = {
|
||||
static const struct vidconsole_ops console_ops = {
|
||||
.putc_xy = console_putc_xy,
|
||||
.move_rows = console_move_rows,
|
||||
.set_row = console_set_row,
|
||||
|
||||
@@ -284,7 +284,7 @@ static int console_putc_xy_3(struct udevice *dev, uint x_frac, uint y, int cp)
|
||||
return VID_TO_POS(fontdata->width);
|
||||
}
|
||||
|
||||
struct vidconsole_ops console_ops_1 = {
|
||||
static const struct vidconsole_ops console_ops_1 = {
|
||||
.putc_xy = console_putc_xy_1,
|
||||
.move_rows = console_move_rows_1,
|
||||
.set_row = console_set_row_1,
|
||||
@@ -293,7 +293,7 @@ struct vidconsole_ops console_ops_1 = {
|
||||
.select_font = console_simple_select_font,
|
||||
};
|
||||
|
||||
struct vidconsole_ops console_ops_2 = {
|
||||
static const struct vidconsole_ops console_ops_2 = {
|
||||
.putc_xy = console_putc_xy_2,
|
||||
.move_rows = console_move_rows_2,
|
||||
.set_row = console_set_row_2,
|
||||
@@ -302,7 +302,7 @@ struct vidconsole_ops console_ops_2 = {
|
||||
.select_font = console_simple_select_font,
|
||||
};
|
||||
|
||||
struct vidconsole_ops console_ops_3 = {
|
||||
static const struct vidconsole_ops console_ops_3 = {
|
||||
.putc_xy = console_putc_xy_3,
|
||||
.move_rows = console_move_rows_3,
|
||||
.set_row = console_set_row_3,
|
||||
|
||||
@@ -1069,7 +1069,7 @@ static int console_truetype_probe(struct udevice *dev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct vidconsole_ops console_truetype_ops = {
|
||||
static const struct vidconsole_ops console_truetype_ops = {
|
||||
.putc_xy = console_truetype_putc_xy,
|
||||
.move_rows = console_truetype_move_rows,
|
||||
.set_row = console_truetype_set_row,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -230,7 +230,7 @@ dis_clk:
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct video_bridge_ops imx_ldb_ops = {
|
||||
static const struct video_bridge_ops imx_ldb_ops = {
|
||||
.attach = imx_ldb_attach,
|
||||
.set_backlight = imx_ldb_set_backlight,
|
||||
};
|
||||
|
||||
@@ -511,7 +511,7 @@ err_reg:
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct video_bridge_ops stm32_dsi_ops = {
|
||||
static const struct video_bridge_ops stm32_dsi_ops = {
|
||||
.attach = stm32_dsi_attach,
|
||||
.set_backlight = stm32_dsi_set_backlight,
|
||||
};
|
||||
|
||||
@@ -522,7 +522,7 @@ static int tda19988_enable(struct udevice *dev, int panel_bpp,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct dm_display_ops tda19988_ops = {
|
||||
static const struct dm_display_ops tda19988_ops = {
|
||||
.read_edid = tda19988_read_edid,
|
||||
.enable = tda19988_enable,
|
||||
};
|
||||
|
||||
@@ -337,7 +337,7 @@ static ssize_t tegra_dsi_host_transfer(struct mipi_dsi_host *host,
|
||||
return count;
|
||||
}
|
||||
|
||||
struct mipi_dsi_host_ops tegra_dsi_bridge_host_ops = {
|
||||
static const struct mipi_dsi_host_ops tegra_dsi_bridge_host_ops = {
|
||||
.transfer = tegra_dsi_host_transfer,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user