cam_cx_ipeak.h 832 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _CAM_CX_IPEAK_H_
  6. #define _CAM_CX_IPEAK_H_
  7. #include "cam_soc_util.h"
  8. #ifndef CONFIG_QCOM_CX_IPEAK
  9. static inline int cam_cx_ipeak_register_cx_ipeak
  10. (struct cam_hw_soc_info *soc_info)
  11. {
  12. return 0;
  13. }
  14. static inline int cam_cx_ipeak_update_vote_cx_ipeak
  15. (struct cam_hw_soc_info *soc_info, int32_t apply_level)
  16. {
  17. return 0;
  18. }
  19. static inline int cam_cx_ipeak_unvote_cx_ipeak
  20. (struct cam_hw_soc_info *soc_info)
  21. {
  22. return 0;
  23. }
  24. #else
  25. int cam_cx_ipeak_register_cx_ipeak(struct cam_hw_soc_info *soc_info);
  26. int cam_cx_ipeak_update_vote_cx_ipeak(struct cam_hw_soc_info *soc_info,
  27. int32_t apply_level);
  28. int cam_cx_ipeak_unvote_cx_ipeak(struct cam_hw_soc_info *soc_info);
  29. #endif
  30. #endif /* _CAM_CX_IPEAK_H_ */