mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-24 06:35:44 +08:00
media: rkisp1: Compile debugfs support conditionally
When CONFIG_DEBUGFS is disabled, there's no need to compile the debugfs support in. Make it conditional. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
8682037db3
commit
fd3608fe6b
@ -1,11 +1,13 @@
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
|
||||
rockchip-isp1-y := rkisp1-capture.o \
|
||||
rkisp1-common.o \
|
||||
rkisp1-dev.o \
|
||||
rkisp1-isp.o \
|
||||
rkisp1-resizer.o \
|
||||
rkisp1-stats.o \
|
||||
rkisp1-params.o
|
||||
|
||||
rockchip-isp1-$(CONFIG_DEBUG_FS) += rkisp1-debug.o
|
||||
|
||||
obj-$(CONFIG_VIDEO_ROCKCHIP_ISP1) += rockchip-isp1.o
|
||||
rockchip-isp1-objs += rkisp1-capture.o \
|
||||
rkisp1-common.o \
|
||||
rkisp1-debug.o \
|
||||
rkisp1-dev.o \
|
||||
rkisp1-isp.o \
|
||||
rkisp1-resizer.o \
|
||||
rkisp1-stats.o \
|
||||
rkisp1-params.o
|
||||
|
@ -518,7 +518,16 @@ void rkisp1_stats_unregister(struct rkisp1_device *rkisp1);
|
||||
int rkisp1_params_register(struct rkisp1_device *rkisp1);
|
||||
void rkisp1_params_unregister(struct rkisp1_device *rkisp1);
|
||||
|
||||
#if IS_ENABLED(CONFIG_DEBUG_FS)
|
||||
void rkisp1_debug_init(struct rkisp1_device *rkisp1);
|
||||
void rkisp1_debug_cleanup(struct rkisp1_device *rkisp1);
|
||||
#else
|
||||
static inline void rkisp1_debug_init(struct rkisp1_device *rkisp1)
|
||||
{
|
||||
}
|
||||
static inline void rkisp1_debug_cleanup(struct rkisp1_device *rkisp1)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _RKISP1_COMMON_H */
|
||||
|
Loading…
Reference in New Issue
Block a user