From: Marek Vasut Date: Sun, 10 May 2026 17:17:01 +0000 (+0200) Subject: video: console: truetype: Staticize and constify driver ops X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f7717c756652bf7fa168be675a91b55164d4334;p=thirdparty%2Fu-boot.git video: console: truetype: Staticize and constify driver ops 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 Reviewed-by: Simon Glass --- diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index eaf169e8386..b9b6f394fbc 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -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,