33 lines
654 B
C
33 lines
654 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2017-2018, 2020-2021, 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);
|
|
int qpnp_pbs_trigger_single_event(struct device_node *dev_node);
|
|
#else
|
|
static inline int qpnp_pbs_trigger_event(struct device_node *dev_node,
|
|
u8 bitmap)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int qpnp_pbs_trigger_single_event(
|
|
struct device_node *dev_node)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|