android_kernel_oneplus_msm8998/include/linux/regulator/proxy-consumer.h
Abhijeet Dharmapurikar 77dd355971 qpnp: Add snapshot of some qpnp, regulator and charger drivers
This snapshot is taken as of msm-3.18 commit
9da4ddc (Merge "clk: msm: clock-gcc: Associate gfx rail
voting with gfx3d branch")

Change-Id: Idd2f467f1f1863a156d1757589dfe78158f0e43f
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-03-01 12:22:31 -08:00

41 lines
1.2 KiB
C

/*
* Copyright (c) 2013, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#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