diff options
| author | Peilin Ye <[email protected]> | 2020-10-28 06:56:47 -0400 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2020-10-28 19:40:11 +0100 |
| commit | 7cb415003468d41aecd6877ae088c38f6c0fc174 (patch) | |
| tree | 4b76922038fc1a26be24a914c7de569e72689c70 /include/linux | |
| parent | e000650375b65ff77c5ee852b5086f58c741179e (diff) | |
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 <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/font.h b/include/linux/font.h index 4a3f8741bb7e..b7214d7881f0 100644 --- a/include/linux/font.h +++ b/include/linux/font.h @@ -16,7 +16,7 @@ struct font_desc { int idx; const char *name; - int width, height; + unsigned int width, height; const void *data; int pref; }; |