Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: c8sectpfe: Do not depend on DEBUG_FS

Make dependency on DEBUG_FS conditional, that way we are not forced to
enable DEBUG_FS if we can to use this driver.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Ricardo Ribalda and committed by
Hans Verkuil
e22b4973 71b3ed53

+10 -3
-1
drivers/media/platform/st/sti/c8sectpfe/Kconfig
··· 5 5 depends on PINCTRL && DVB_CORE && I2C 6 6 depends on ARCH_STI || ARCH_MULTIPLATFORM || COMPILE_TEST 7 7 select FW_LOADER 8 - select DEBUG_FS 9 8 select DVB_LNBP21 if MEDIA_SUBDRV_AUTOSELECT 10 9 select DVB_STV090x if MEDIA_SUBDRV_AUTOSELECT 11 10 select DVB_STB6100 if MEDIA_SUBDRV_AUTOSELECT
+5 -2
drivers/media/platform/st/sti/c8sectpfe/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o \ 3 - c8sectpfe-debugfs.o 2 + c8sectpfe-y += c8sectpfe-core.o c8sectpfe-common.o c8sectpfe-dvb.o 3 + 4 + ifneq ($(CONFIG_DEBUG_FS),) 5 + c8sectpfe-y += c8sectpfe-debugfs.o 6 + endif 4 7 5 8 obj-$(CONFIG_DVB_C8SECTPFE) += c8sectpfe.o 6 9
+5
drivers/media/platform/st/sti/c8sectpfe/c8sectpfe-debugfs.h
··· 12 12 13 13 #include "c8sectpfe-core.h" 14 14 15 + #if defined(CONFIG_DEBUG_FS) 15 16 void c8sectpfe_debugfs_init(struct c8sectpfei *); 16 17 void c8sectpfe_debugfs_exit(struct c8sectpfei *); 18 + #else 19 + static inline void c8sectpfe_debugfs_init(struct c8sectpfei *) {}; 20 + static inline void c8sectpfe_debugfs_exit(struct c8sectpfei *) {}; 21 + #endif 17 22 18 23 #endif /* __C8SECTPFE_DEBUG_H */