summaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2024-01-18 10:05:27 +0100
committerThomas Zimmermann <tzimmermann@suse.de>2024-01-23 10:11:34 +0100
commit55ea87a4f9007a034bd72bc93408d8a579d04177 (patch)
treeff1de89aa222124ad51998bea28f5b86c72deccd /include/video
parenta3b6792e990d63d47c4d2622a9704a01db50c3a2 (diff)
downloadlinux-55ea87a4f9007a034bd72bc93408d8a579d04177.tar.gz
linux-55ea87a4f9007a034bd72bc93408d8a579d04177.tar.bz2
linux-55ea87a4f9007a034bd72bc93408d8a579d04177.zip
video/cmdline: Hide __video_get_options() behind CONFIG_FB_CORE
The function __video_get_options() only exists for compatibility with old fbdev drivers that cannot be refactored easily. Hide it behind CONFIG_FB_CORE. v2: * support CONFIG_FB_CORE=m via IS_ENABLED() (kernel test robot) Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20240118090721.7995-3-tzimmermann@suse.de
Diffstat (limited to 'include/video')
-rw-r--r--include/video/cmdline.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/video/cmdline.h b/include/video/cmdline.h
index 77292d1d6173..76649465bb08 100644
--- a/include/video/cmdline.h
+++ b/include/video/cmdline.h
@@ -3,11 +3,14 @@
#ifndef VIDEO_CMDLINE_H
#define VIDEO_CMDLINE_H
+#include <linux/kconfig.h>
#include <linux/types.h>
const char *video_get_options(const char *name);
+#if IS_ENABLED(CONFIG_FB_CORE)
/* exported for compatibility with fbdev; don't use in new code */
bool __video_get_options(const char *name, const char **option, bool is_of);
+#endif
#endif