summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2024-09-16 13:00:25 +0200
committerTzung-Bi Shih <tzungbi@kernel.org>2024-09-30 03:40:51 +0200
commit6074e905023d09f64f2c896f475820a5623deb2c (patch)
tree6056fdf39ece7d3e660a69c90e443317356c63f1 /include
parentLinux 6.12-rc1 (diff)
downloadlinux-6074e905023d09f64f2c896f475820a5623deb2c.tar.xz
linux-6074e905023d09f64f2c896f475820a5623deb2c.zip
firmware: sysfb: Add a sysfb_handles_screen_info() helper function
That can be used by drivers to check if the Generic System Framebuffers (sysfb) support can handle the data contained in the global screen_info. Drivers might need this information to know if have to setup the system framebuffer, or if they have to delegate this action to sysfb instead. Suggested-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20240916110040.1688511-2-javierm@redhat.com Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sysfb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/sysfb.h b/include/linux/sysfb.h
index bef5f06a91de..07cbab516942 100644
--- a/include/linux/sysfb.h
+++ b/include/linux/sysfb.h
@@ -60,12 +60,19 @@ struct efifb_dmi_info {
void sysfb_disable(struct device *dev);
+bool sysfb_handles_screen_info(void);
+
#else /* CONFIG_SYSFB */
static inline void sysfb_disable(struct device *dev)
{
}
+static inline bool sysfb_handles_screen_info(void)
+{
+ return false;
+}
+
#endif /* CONFIG_SYSFB */
#ifdef CONFIG_EFI