
From: Simon Glass <sjg@chromium.org> All of these helper functions check the wrong member. Fix them. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: 9e55d09596a ("video: Allow obtaining the nominal size of a...") Fixes: 9899eef2cb4 ("video: Allow saving and restoring text-entry...") --- drivers/video/vidconsole-uclass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index a98344cf9a7..6c5338936e5 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -655,7 +655,7 @@ int vidconsole_nominal(struct udevice *dev, const char *name, uint size, struct vidconsole_ops *ops = vidconsole_get_ops(dev); int ret; - if (ops->measure) { + if (ops->nominal) { ret = ops->nominal(dev, name, size, num_chars, bbox); if (ret != -ENOSYS) return ret; @@ -675,7 +675,7 @@ int vidconsole_entry_save(struct udevice *dev, struct abuf *buf) struct vidconsole_ops *ops = vidconsole_get_ops(dev); int ret; - if (ops->measure) { + if (ops->entry_save) { ret = ops->entry_save(dev, buf); if (ret != -ENOSYS) return ret; @@ -692,7 +692,7 @@ int vidconsole_entry_restore(struct udevice *dev, struct abuf *buf) struct vidconsole_ops *ops = vidconsole_get_ops(dev); int ret; - if (ops->measure) { + if (ops->entry_restore) { ret = ops->entry_restore(dev, buf); if (ret != -ENOSYS) return ret; -- 2.43.0