lib/fonts: Fix visiblity of SUN12x22 and TER16x32 if DRM_PANIC
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 13 Jun 2024 19:18:01 +0000 (21:18 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Mon, 24 Jun 2024 11:18:02 +0000 (13:18 +0200)
commita03a84bee36ab018d5757a29bb85e0fb804bb253
tree80fbcd68eb322b681179e3dcd98e33dca6be6c25
parent94ff11d3bd32506710ca43569d38420e7fc790c1
lib/fonts: Fix visiblity of SUN12x22 and TER16x32 if DRM_PANIC

When CONFIG_FONTS ("Select compiled-in fonts") is not enabled, the user
should not be asked about any fonts.  However, when CONFIG_DRM_PANIC is
enabled, the user is still asked about the Sparc console 12x22 and
Terminus 16x32 fonts.

Fix this by moving the "|| DRM_PANIC" to where it belongs.
Split the dependency in two rules to improve readability.

Fixes: b94605a3889b9084 ("lib/fonts: Allow to select fonts for drm_panic")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/ac474c6755800e61e18bd5af407c6acb449c5149.1718305355.git.geert+renesas@glider.be
lib/fonts/Kconfig