summaryrefslogtreecommitdiff
path: root/components/drivers/regulator/regulator_dm.h
blob: eabe4912f969cdf6f55988d9967ecc876a1b2230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-09-23     GuEe-GUI     first version
 * 2026-03-27     Evlers       stub out regulator_ofw_parse when OFW disabled
 */

#ifndef __REGULATOR_DM_H__
#define __REGULATOR_DM_H__

#include <rtthread.h>
#include <rtdevice.h>

#ifdef RT_USING_OFW
rt_err_t regulator_ofw_parse(struct rt_ofw_node *np, struct rt_regulator_param *param);
#else
rt_inline rt_err_t regulator_ofw_parse(void *np, struct rt_regulator_param *param)
{
    RT_UNUSED(np);
    RT_UNUSED(param);
    return RT_EOK;
}
#endif /* RT_USING_OFW */

#endif /* __REGULATOR_DM_H__ */