blob: 39497ac4b552c24a92b480c4758e2c39f4c460ad [file] [log] [blame]
Kiran Gunda04967c82017-02-14 14:22:18 +05301/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13#ifndef _QPNP_PBS_H
14#define _QPNP_PBS_H
15
16#ifdef CONFIG_QPNP_PBS
17int qpnp_pbs_trigger_event(struct device_node *dev_node, u8 bitmap);
18#else
19static inline int qpnp_pbs_trigger_event(struct device_node *dev_node,
20 u8 bitmap) {
21 return -ENODEV;
22}
23#endif
24
25#endif