From 957b513d841076a404667a2a2bc3ee6bf44dc915 Mon Sep 17 00:00:00 2001 From: Kiran Gunda Date: Tue, 14 Feb 2017 14:22:18 +0530 Subject: 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 --- include/linux/qpnp/qpnp-pbs.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/linux/qpnp/qpnp-pbs.h (limited to 'include/linux') diff --git a/include/linux/qpnp/qpnp-pbs.h b/include/linux/qpnp/qpnp-pbs.h new file mode 100644 index 000000000000..39497ac4b552 --- /dev/null +++ b/include/linux/qpnp/qpnp-pbs.h @@ -0,0 +1,25 @@ +/* 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 -- cgit v1.2.3