diff options
author | Javier Martinez Canillas <javierm@redhat.com> | 2022-06-07 20:23:35 +0200 |
---|---|---|
committer | Javier Martinez Canillas <javierm@redhat.com> | 2022-06-29 09:51:41 +0200 |
commit | bde376e9de3c0bc55eedc8956b0f114c05531595 (patch) | |
tree | dfa14e92599d91bcfd1cb336b80b388ae74beb77 /include/linux/sysfb.h | |
parent | 9e121040e54abef9ed5542e5fdfa87911cd96204 (diff) | |
download | linux-stable-bde376e9de3c0bc55eedc8956b0f114c05531595.tar.gz linux-stable-bde376e9de3c0bc55eedc8956b0f114c05531595.tar.bz2 linux-stable-bde376e9de3c0bc55eedc8956b0f114c05531595.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 'include/linux/sysfb.h')
-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[]; |