]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: console: normal: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:16:59 +0000 (19:16 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 29 May 2026 23:10:46 +0000 (17:10 -0600)
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@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/console_normal.c

index 07db613ac53c957cfdfff0c9fb857b4aab4d0f21..6dc0a6eaf9db701aa594fd3b96de913706b2a99c 100644 (file)
@@ -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,