diff options
| author | Marek Vasut <[email protected]> | 2026-05-10 19:16:59 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-29 17:10:46 -0600 |
| commit | 3ddd78074e87abc04e662dedc2a0b1a39cb2eb26 (patch) | |
| tree | 5a337c023cadb0fd041a70cb1e1a6dfc59598cf2 /drivers/video | |
| parent | 772ef8b0890565cc9645336d9539b49863e7891b (diff) | |
video: console: normal: 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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'drivers/video')
| -rw-r--r-- | drivers/video/console_normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 07db613ac53..6dc0a6eaf9d 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -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, |
