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)
commit4497364e5f61f9e8d4a6252bc6deb9597d68bbac
tree48f878e419d0b849899600d35899b2c71f4ab9ab
parent4ee573086bd88ff3060dda07873bf755d332e9ba
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