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