33 lines
645 B
C
Executable File
33 lines
645 B
C
Executable File
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2023 Qualcomm Innovation Center, Inc. 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
|