summaryrefslogtreecommitdiff
path: root/include/video_console.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/video_console.h')
-rw-r--r--include/video_console.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/video_console.h b/include/video_console.h
index 3e1e00c23f9..770103284b7 100644
--- a/include/video_console.h
+++ b/include/video_console.h
@@ -161,6 +161,15 @@ struct vidconsole_ops {
struct vidfont_info *info);
/**
+ * get_font_size() - get the current font name and size
+ *
+ * @dev: vidconsole device
+ * @sizep: Place to put the font size (nominal height in pixels)
+ * Returns: Current font name
+ */
+ const char *(*get_font_size)(struct udevice *dev, uint *sizep);
+
+ /**
* select_font() - Select a particular font by name / size
*
* @dev: Device to adjust
@@ -303,9 +312,10 @@ void vidconsole_list_fonts(struct udevice *dev);
*
* @dev: vidconsole device
* @sizep: Place to put the font size (nominal height in pixels)
- * Returns: Current font name
+ * @name: pointer to font name, a placeholder for result
+ * Return: 0 if OK, -ENOSYS if not implemented in driver
*/
-const char *vidconsole_get_font_size(struct udevice *dev, uint *sizep);
+int vidconsole_get_font_size(struct udevice *dev, const char **name, uint *sizep);
#ifdef CONFIG_VIDEO_COPY
/**