xref: /optee_os/core/include/drivers/stm32_vrefbuf.h (revision 5f7f88c6b9d618d1e068166bbf2b07757350791d)
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3  * Copyright (C) 2023, STMicroelectronics
4  */
5 #ifndef DRIVERS_STM32_VREFBUF_H
6 #define DRIVERS_STM32_VREFBUF_H
7 
8 #include <drivers/regulator.h>
9 
10 #ifdef CFG_STM32_VREFBUF
11 /* Return VREFBUF regulator handler if registered */
12 struct regulator *stm32_vrefbuf_regulator(void);
13 #else
14 static inline struct regulator *stm32_vrefbuf_regulator(void)
15 {
16 	return NULL;
17 }
18 #endif
19 
20 #endif /*DRIVERS_STM32_VREFBUF_H*/
21