diff --git a/drivers/cam_utils/Makefile b/drivers/cam_utils/Makefile index 931478f067..58be3110cb 100644 --- a/drivers/cam_utils/Makefile +++ b/drivers/cam_utils/Makefile @@ -5,4 +5,7 @@ ccflags-y += -I$(srctree)/techpack/camera/drivers/cam_req_mgr/ ccflags-y += -I$(srctree)/techpack/camera/drivers/cam_smmu/ obj-$(CONFIG_SPECTRA_CAMERA) += cam_soc_util.o cam_io_util.o cam_packet_util.o cam_debug_util.o cam_trace.o cam_common_util.o + +ifdef CONFIG_QCOM_CX_IPEAK obj-$(CONFIG_SPECTRA_CAMERA) += cam_cx_ipeak.o +endif diff --git a/drivers/cam_utils/cam_cx_ipeak.h b/drivers/cam_utils/cam_cx_ipeak.h index ab06952b86..4c88fa3450 100644 --- a/drivers/cam_utils/cam_cx_ipeak.h +++ b/drivers/cam_utils/cam_cx_ipeak.h @@ -8,10 +8,30 @@ #include "cam_soc_util.h" +#ifndef CONFIG_QCOM_CX_IPEAK +static inline int cam_cx_ipeak_register_cx_ipeak + (struct cam_hw_soc_info *soc_info) +{ + return 0; +} + +static inline int cam_cx_ipeak_update_vote_cx_ipeak + (struct cam_hw_soc_info *soc_info, int32_t apply_level) +{ + return 0; +} + +static inline int cam_cx_ipeak_unvote_cx_ipeak + (struct cam_hw_soc_info *soc_info) +{ + return 0; +} +#else int cam_cx_ipeak_register_cx_ipeak(struct cam_hw_soc_info *soc_info); int cam_cx_ipeak_update_vote_cx_ipeak(struct cam_hw_soc_info *soc_info, int32_t apply_level); int cam_cx_ipeak_unvote_cx_ipeak(struct cam_hw_soc_info *soc_info); +#endif #endif /* _CAM_CX_IPEAK_H_ */