]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sysfb: Add struct sysfb_display_info
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 26 Nov 2025 16:03:20 +0000 (17:03 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 16 Dec 2025 13:12:44 +0000 (14:12 +0100)
Add struct sysfb_display_info to wrap display-related state. For now
it contains only the screen's video mode. Later EDID will be added as
well.

This struct will be helpful for passing display state to sysfb drivers
or from the EFI stub library.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Richard Lyu <richard.lyu@suse.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
include/linux/sysfb.h

index 8527a50a5290eff9fed939963542404f464caa53..8b37247528bf969d4030d63a57196d9a98c8e40a 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <linux/err.h>
+#include <linux/screen_info.h>
 #include <linux/types.h>
 
 #include <linux/platform_data/simplefb.h>
@@ -60,6 +61,10 @@ struct efifb_dmi_info {
        int flags;
 };
 
+struct sysfb_display_info {
+       struct screen_info screen;
+};
+
 #ifdef CONFIG_SYSFB
 
 void sysfb_disable(struct device *dev);