mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Fonts: Make font size unsigned in font_desc
`width` and `height` are defined as unsigned in our UAPI font descriptor `struct console_font`. Make them unsigned in our kernel font descriptor `struct font_desc`, too. Also, change the corresponding printk() format identifiers from `%d` to `%u`, in sti_select_fbfont(). Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20201028105647.1210161-1-yepeilin.cs@gmail.com
This commit is contained in:
parent
e000650375
commit
7cb4150034
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
struct font_desc {
|
||||
int idx;
|
||||
const char *name;
|
||||
int width, height;
|
||||
unsigned int width, height;
|
||||
const void *data;
|
||||
int pref;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue