diff options
author | Peilin Ye <yepeilin.cs@gmail.com> | 2020-11-12 07:13:34 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2020-11-16 16:31:41 +0100 |
commit | 4ee573086bd88ff3060dda07873bf755d332e9ba (patch) | |
tree | 17d367fcb6c7691b853e29405b87e5eb71ceaf63 /include | |
parent | 259a252c1f4e19045b06660f81014fb51e17f3f6 (diff) | |
download | linux-4ee573086bd88ff3060dda07873bf755d332e9ba.tar.bz2 |
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 'include')
-rw-r--r-- | include/linux/font.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/font.h b/include/linux/font.h index 4f50d736ea72..abf1442ce719 100644 --- a/include/linux/font.h +++ b/include/linux/font.h @@ -17,6 +17,7 @@ struct font_desc { int idx; const char *name; unsigned int width, height; + unsigned int charcount; const void *data; int pref; }; |