Files
android_kernel_samsung_sm86…/drivers/cam_utils/cam_cx_ipeak.h
Jigarkumar Zala 02ac7654b8 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>
2019-12-03 13:03:27 -08:00

38 lines
832 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
*/
#ifndef _CAM_CX_IPEAK_H_
#define _CAM_CX_IPEAK_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_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_ */