summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2022-06-07 20:23:35 +0200
committerJavier Martinez Canillas <javierm@redhat.com>2022-06-29 09:51:41 +0200
commitbde376e9de3c0bc55eedc8956b0f114c05531595 (patch)
treedfa14e92599d91bcfd1cb336b80b388ae74beb77 /include
parent9e121040e54abef9ed5542e5fdfa87911cd96204 (diff)
downloadlinux-bde376e9de3c0bc55eedc8956b0f114c05531595.tar.bz2
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')
-rw-r--r--include/linux/sysfb.h12
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[];