]> git.ipfire.org Git - thirdparty/linux.git/commit
lib/fonts: Remove internal symbols and macros from public header file
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 9 Mar 2026 14:14:55 +0000 (15:14 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 14:47:21 +0000 (15:47 +0100)
commitdb65872b38dc9f18a62669d6ae1e4ec7868a85a9
treeca88db8f40dff0677625abc57f0867e85d6f7df1
parentc37bd7c8d36f760c064de2639423866dc0270997
lib/fonts: Remove internal symbols and macros from public header file

Define access macros for font_data_t in fonts.c. Define struct font_data
and declare most of the font symbols in the internal header font.h, where
they can only be seen by the font code.

Also move font indices into internal font.h. They appear to be unused
though. There is m86k assembly code that operates on the idx field, so
leave them in place for now.

List all built-in fonts in a separate section in the public header file.

v2:
- do not add config guards around font symbols (Helge)
- keep declaration of built-in fonts in public header

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
17 files changed:
include/linux/font.h
lib/fonts/font.h [new file with mode: 0644]
lib/fonts/font_10x18.c
lib/fonts/font_6x10.c
lib/fonts/font_6x11.c
lib/fonts/font_6x8.c
lib/fonts/font_7x14.c
lib/fonts/font_8x16.c
lib/fonts/font_8x8.c
lib/fonts/font_acorn_8x8.c
lib/fonts/font_mini_4x6.c
lib/fonts/font_pearl_8x8.c
lib/fonts/font_sun12x22.c
lib/fonts/font_sun8x16.c
lib/fonts/font_ter10x18.c
lib/fonts/font_ter16x32.c
lib/fonts/fonts.c