Skip to content

Commit a3b6792

Browse files
committed
video/cmdline: Introduce CONFIG_VIDEO for video= parameter
Add CONFIG_VIDEO for common code in drivers/video/. Use the option to select helpers for the video= parameter. Replaces CONFIG_VIDEO_CMDLINE. Other common code in drivers/video/ can be moved behind CONFIG_VIDEO, which will simplify the Kconfig rules. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent cf41ceb commit a3b6792

5 files changed

Lines changed: 5 additions & 11 deletions

File tree

drivers/gpu/drm/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ menuconfig DRM
1919
# gallium uses SYS_kcmp for os_same_file_description() to de-duplicate
2020
# device and dmabuf fd. Let's make sure that is available for our userspace.
2121
select KCMP
22-
select VIDEO_CMDLINE
22+
select VIDEO
2323
select VIDEO_NOMODESET
2424
help
2525
Kernel-level support for the Direct Rendering Infrastructure (DRI)

drivers/video/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ config STI_CORE
1818
STI refers to the HP "Standard Text Interface" which is a set of
1919
BIOS routines contained in a ROM chip in HP PA-RISC based machines.
2020

21-
config VIDEO_CMDLINE
21+
config VIDEO
2222
bool
23+
default n
2324

2425
config VIDEO_NOMODESET
2526
bool

drivers/video/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
obj-$(CONFIG_APERTURE_HELPERS) += aperture.o
44
obj-$(CONFIG_STI_CORE) += sticore.o
55
obj-$(CONFIG_VGASTATE) += vgastate.o
6-
obj-$(CONFIG_VIDEO_CMDLINE) += cmdline.o
6+
obj-$(CONFIG_VIDEO) += cmdline.o
77
obj-$(CONFIG_VIDEO_NOMODESET) += nomodeset.o
88
obj-$(CONFIG_HDMI) += hdmi.o
99

drivers/video/fbdev/core/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55

66
config FB_CORE
7-
select VIDEO_CMDLINE
7+
select VIDEO
88
tristate
99

1010
config FB_NOTIFY

include/video/cmdline.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,9 @@
55

66
#include <linux/types.h>
77

8-
#if defined(CONFIG_VIDEO_CMDLINE)
98
const char *video_get_options(const char *name);
109

1110
/* exported for compatibility with fbdev; don't use in new code */
1211
bool __video_get_options(const char *name, const char **option, bool is_of);
13-
#else
14-
static inline const char *video_get_options(const char *name)
15-
{
16-
return NULL;
17-
}
18-
#endif
1912

2013
#endif

0 commit comments

Comments
 (0)