]> git.baikalelectronics.ru Git - kernel.git/commit
parisc/sticore: Avoid hard-coding built-in font charcount
authorPeilin Ye <yepeilin.cs@gmail.com>
Thu, 12 Nov 2020 12:14:21 +0000 (07:14 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Nov 2020 15:31:58 +0000 (16:31 +0100)
commit4fe2f9edc980663be4c4105589e1c6cac6cf8039
tree48f878e419d0b849899600d35899b2c71f4ab9ab
parent74c6e0bbeca184a6e0d0ee5136f22c472a8f471b
parisc/sticore: Avoid hard-coding built-in font charcount

sti_select_fbfont() and sti_cook_fonts() are hard-coding the number of
characters of our built-in fonts as 256. Recently, we included that
information in our kernel font descriptor `struct font_desc`, so use
`fbfont->charcount` instead of hard-coded values.

Depends on patch "Fonts: Add charcount field to 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/037186fb50cf3d17bb7bc9482357635b9df6076e.1605169912.git.yepeilin.cs@gmail.com
drivers/video/console/sticore.c