diff options
author | 2022-06-07 20:23:35 +0200 | |
---|---|---|
committer | 2022-06-09 16:15:36 +0200 | |
commit | bc824922b264aff40eba8c160972ee07a95e7dd4 (patch) | |
tree | b8813311eb77edcd738221a5098e3add8ae11fc3 /include/linux/sysfb.h | |
parent | firmware: sysfb: Make sysfb_create_simplefb() return a pdev pointer (diff) | |
download | linux-dev-bc824922b264aff40eba8c160972ee07a95e7dd4.tar.xz linux-dev-bc824922b264aff40eba8c160972ee07a95e7dd4.zip |
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
Diffstat (limited to '')
-rw-r--r-- | include/linux/sysfb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sysfb.h b/include/linux/sysfb.h index 708152e9037b..8ba8b5be5567 100644 --- a/include/linux/sysfb.h +++ b/include/linux/sysfb.h @@ -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[]; |