summaryrefslogtreecommitdiff
path: root/lib/fonts/font_6x10.c
diff options
context:
space:
mode:
authorPeilin Ye <yepeilin.cs@gmail.com>2020-11-12 15:13:34 +0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-11-16 18:31:41 +0300
commit4ee573086bd88ff3060dda07873bf755d332e9ba (patch)
tree17d367fcb6c7691b853e29405b87e5eb71ceaf63 /lib/fonts/font_6x10.c
parent259a252c1f4e19045b06660f81014fb51e17f3f6 (diff)
downloadlinux-4ee573086bd88ff3060dda07873bf755d332e9ba.tar.xz
Fonts: Add charcount field to font_desc
Subsystems are hard-coding the number of characters of our built-in fonts as 256. Include that information in our kernel font descriptor, `struct font_desc`. Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/65952296d1d9486093bd955d1536f7dcd11112c6.1605169912.git.yepeilin.cs@gmail.com
Diffstat (limited to 'lib/fonts/font_6x10.c')
-rw-r--r--lib/fonts/font_6x10.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/fonts/font_6x10.c b/lib/fonts/font_6x10.c
index 6e3c4b7691c8..e65df019e0d2 100644
--- a/lib/fonts/font_6x10.c
+++ b/lib/fonts/font_6x10.c
@@ -3083,6 +3083,7 @@ const struct font_desc font_6x10 = {
.name = "6x10",
.width = 6,
.height = 10,
+ .charcount = 256,
.data = fontdata_6x10.data,
.pref = 0,
};