hc
2023-11-22 9ca5fbcb63a8dcaee0527f96afb91dc4b4bd8fa9
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
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
 */
 
#ifndef _LINUX_REGULATOR_PROXY_CONSUMER_H_
#define _LINUX_REGULATOR_PROXY_CONSUMER_H_
 
#include <linux/device.h>
#include <linux/of.h>
 
struct proxy_consumer;
 
#ifdef CONFIG_REGULATOR_PROXY_CONSUMER
 
struct proxy_consumer *regulator_proxy_consumer_register(struct device *reg_dev,
           struct device_node *reg_node);
 
int regulator_proxy_consumer_unregister(struct proxy_consumer *consumer);
 
#else
 
static inline struct proxy_consumer *regulator_proxy_consumer_register(
           struct device *reg_dev, struct device_node *reg_node)
{ return NULL; }
 
static inline int regulator_proxy_consumer_unregister(
           struct proxy_consumer *consumer)
{ return 0; }
 
#endif
 
#endif