firmware: sysfb: Move bpp-depth calculation into screen_info helper
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 1 Apr 2025 09:37:16 +0000 (11:37 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 7 Apr 2025 09:02:07 +0000 (11:02 +0200)
commit1ce4c3aeef333be1e6290ec6d1f7891c2bfc7a1f
tree1811cb29c9af4dea6057c0ee4caea3fa04f20bf2
parente7f435b3dcf7f290fa97538ec26b41c1d2eff138
firmware: sysfb: Move bpp-depth calculation into screen_info helper

Move the calculation of the bits per pixels for screen_info into a
helper function. This will make it available to other callers besides
the firmware code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250401094056.32904-14-tzimmermann@suse.de
drivers/firmware/sysfb_simplefb.c
drivers/video/screen_info_generic.c
include/linux/screen_info.h