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>
このコミットが含まれているのは:
Jigarkumar Zala
2019-11-05 12:58:01 -08:00
コミット 02ac7654b8
2個のファイルの変更23行の追加0行の削除

ファイルの表示

@@ -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

ファイルの表示

@@ -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_ */