msm: camera: utils: Add stub function for cx_ipeak

Add mandate check in order to compile and use the cx_ipeak
related functionality. Also, update header with stub function.

CRs-Fixed: 2572607
Change-Id: I2e07101f88b6a47ca1733d04b3aa126fdeae176b
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>
This commit is contained in:
Jigarkumar Zala
2019-11-05 12:58:01 -08:00
orang tua 9d1a4364ae
melakukan 02ac7654b8
2 mengubah file dengan 23 tambahan dan 0 penghapusan

Melihat File

@@ -5,4 +5,7 @@ ccflags-y += -I$(srctree)/techpack/camera/drivers/cam_req_mgr/
ccflags-y += -I$(srctree)/techpack/camera/drivers/cam_smmu/ 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 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 obj-$(CONFIG_SPECTRA_CAMERA) += cam_cx_ipeak.o
endif

Melihat File

@@ -8,10 +8,30 @@
#include "cam_soc_util.h" #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_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, int cam_cx_ipeak_update_vote_cx_ipeak(struct cam_hw_soc_info *soc_info,
int32_t apply_level); int32_t apply_level);
int cam_cx_ipeak_unvote_cx_ipeak(struct cam_hw_soc_info *soc_info); int cam_cx_ipeak_unvote_cx_ipeak(struct cam_hw_soc_info *soc_info);
#endif
#endif /* _CAM_CX_IPEAK_H_ */ #endif /* _CAM_CX_IPEAK_H_ */