regulator_dm.h 600 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-09-23 GuEe-GUI first version
  9. */
  10. #ifndef __REGULATOR_DM_H__
  11. #define __REGULATOR_DM_H__
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #ifdef RT_USING_OFW
  15. rt_err_t regulator_ofw_parse(struct rt_ofw_node *np, struct rt_regulator_param *param);
  16. #else
  17. rt_inline rt_err_t regulator_ofw_parse(struct rt_ofw_node *np, struct rt_regulator_param *param);
  18. {
  19. return RT_EOK;
  20. }
  21. #endif /* RT_USING_OFW */
  22. #endif /* __REGULATOR_DM_H__ */