summaryrefstree
path: root/kernel/include/linux/qpnp/qpnp-pbs.h
blob: 771170485c8557964631e3481cd9104ce587fd71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2017-2020, The Linux Foundation. All rights reserved.
 */

#ifndef _QPNP_PBS_H
#define _QPNP_PBS_H

#include <linux/errno.h>
#include <linux/types.h>

struct device_node;

#if IS_ENABLED(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