android_kernel_oneplus_msm8998/include/linux/qpnp/qpnp-pbs.h
Kiran Gunda 957b513d84 soc: qcom: qpnp-pbs: Add PBS driver support
The PBS driver helps the client drivers to trigger the PBS
event to execute the PBS RAM configuration as requested by the
client driver.

Change-Id: Ic5d1290ffa0b66ac7a8f68529aafcf0b871ee3e8
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
2017-02-27 14:29:44 +05:30

25 lines
793 B
C

/* Copyright (c) 2017, 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 _QPNP_PBS_H
#define _QPNP_PBS_H
#ifdef CONFIG_QPNP_PBS
int qpnp_pbs_trigger_event(struct device_node *dev_node, u8 bitmap);
#else
static inline int qpnp_pbs_trigger_event(struct device_node *dev_node,
u8 bitmap) {
return -ENODEV;
}
#endif
#endif