regulator_dm.h 704 B

1234567891011121314151617181920212223242526272829
  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. * 2026-03-27 Evlers stub out regulator_ofw_parse when OFW disabled
  10. */
  11. #ifndef __REGULATOR_DM_H__
  12. #define __REGULATOR_DM_H__
  13. #include <rtthread.h>
  14. #include <rtdevice.h>
  15. #ifdef RT_USING_OFW
  16. rt_err_t regulator_ofw_parse(struct rt_ofw_node *np, struct rt_regulator_param *param);
  17. #else
  18. rt_inline rt_err_t regulator_ofw_parse(void *np, struct rt_regulator_param *param)
  19. {
  20. RT_UNUSED(np);
  21. RT_UNUSED(param);
  22. return RT_EOK;
  23. }
  24. #endif /* RT_USING_OFW */
  25. #endif /* __REGULATOR_DM_H__ */