mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
firmware: sysfb: Add sysfb_disable() helper function
This can be used by subsystems to unregister a platform device registered by sysfb and also to disable future platform device registration in sysfb. Suggested-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20220607182338.344270-3-javierm@redhat.com
This commit is contained in:
@@ -55,6 +55,18 @@ struct efifb_dmi_info {
|
||||
int flags;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_SYSFB
|
||||
|
||||
void sysfb_disable(void);
|
||||
|
||||
#else /* CONFIG_SYSFB */
|
||||
|
||||
static inline void sysfb_disable(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_SYSFB */
|
||||
|
||||
#ifdef CONFIG_EFI
|
||||
|
||||
extern struct efifb_dmi_info efifb_dmi_list[];
|
||||
|
||||
Reference in New Issue
Block a user