driver:power:add regulator remote proc

N/A

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin
2021-11-25 17:48:58 +08:00
committed by Xiang Xiao
parent c8f1a9e430
commit eed6510202
5 changed files with 681 additions and 0 deletions
+36
View File
@@ -153,6 +153,42 @@ regulator_register(FAR const struct regulator_desc_s *desc,
void regulator_unregister(FAR struct regulator_dev_s *rdev);
#if defined(CONFIG_REGULATOR_RPMSG)
/****************************************************************************
* Name: regulator_rpmsg_get
*
* Description:
*
* Input Parameters:
*
* name - the name for register the rpmsg regulator dev
*
* Returned Value:
*
* Regulator dev pointer
*
****************************************************************************/
FAR struct regulator_dev_s *regulator_rpmsg_get(FAR const char *name);
/****************************************************************************
* Name: regulator_rpmsg_init
*
* Description:
*
* Input Parameters:
*
* Returned Value:
*
* Zero (OK) on success; a negated errno on failure
*
****************************************************************************/
int regulator_rpmsg_init(void);
#endif
#undef EXTERN
#ifdef __cplusplus
}