aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDzmitry Sankouski2023-03-07 13:21:15 +0300
committerAnatolij Gustschin2023-03-07 15:59:21 +0100
commit4f6e34811db5ad0362843803930d1659a24e8da0 (patch)
tree8a7327313e4383b1fe27bf1ad4cd2b902c74fe65 /cmd
parent39c1fa2c212b8acf15dfbccd7b10c6de93ba88df (diff)
video console: move vidconsole_get_font_size() logic to driver ops
Since multiple vidconsole drivers exists, vidconsole_get_font_size() implementation cannot longer live in vidconsole_uclass.c file. Move current vidconsole_get_font_size logic to truetype driver ops. Signed-off-by: Dzmitry Sankouski <dsankouski@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/font.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/font.c b/cmd/font.c
index 7b4347f32b5..fe2d65caaf7 100644
--- a/cmd/font.c
+++ b/cmd/font.c
@@ -61,7 +61,11 @@ static int do_font_size(struct cmd_tbl *cmdtp, int flag, int argc,
if (uclass_first_device_err(UCLASS_VIDEO_CONSOLE, &dev))
return CMD_RET_FAILURE;
- font_name = vidconsole_get_font_size(dev, &size);
+ ret = vidconsole_get_font_size(dev, &font_name, &size);
+ if (ret) {
+ printf("Failed (error %d)\n", ret);
+ return CMD_RET_FAILURE;
+ }
size = dectoul(argv[1], NULL);