spmi-pmic-arb.h 554 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /* Copyright (c) 2020, The Linux Foundation. All rights reserved. */
  3. #ifndef _SPMI_PMIC_ARB_H
  4. #define _SPMI_PMIC_ARB_H
  5. #include <linux/device.h>
  6. #include <linux/ioport.h>
  7. #include <linux/types.h>
  8. #if IS_ENABLED(CONFIG_SPMI_MSM_PMIC_ARB)
  9. int spmi_pmic_arb_map_address(const struct device *dev, u32 spmi_address,
  10. struct resource *res_out);
  11. #else
  12. static inline int spmi_pmic_arb_map_address(const struct device *dev,
  13. u32 spmi_address, struct resource *res_out)
  14. {
  15. return -ENODEV;
  16. }
  17. #endif
  18. #endif