diff options
| author | Thomas Zimmermann <tzimmermann@suse.de> | 2025-04-01 12:37:16 +0300 |
|---|---|---|
| committer | Thomas Zimmermann <tzimmermann@suse.de> | 2025-04-07 12:02:07 +0300 |
| commit | 1ce4c3aeef333be1e6290ec6d1f7891c2bfc7a1f (patch) | |
| tree | 1811cb29c9af4dea6057c0ee4caea3fa04f20bf2 /include/linux | |
| parent | e7f435b3dcf7f290fa97538ec26b41c1d2eff138 (diff) | |
| download | linux-1ce4c3aeef333be1e6290ec6d1f7891c2bfc7a1f.tar.xz | |
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
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/screen_info.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/screen_info.h b/include/linux/screen_info.h index 6a4a3cec4638..ab3cffbb58b7 100644 --- a/include/linux/screen_info.h +++ b/include/linux/screen_info.h @@ -128,6 +128,8 @@ static inline unsigned int screen_info_video_type(const struct screen_info *si) ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num); +u32 __screen_info_lfb_bits_per_pixel(const struct screen_info *si); + #if defined(CONFIG_PCI) void screen_info_apply_fixups(void); struct pci_dev *screen_info_pci_dev(const struct screen_info *si); |
