Add samsung specific changes
This commit is contained in:
32
include/linux/qpnp/qpnp-pbs.h
Normal file
32
include/linux/qpnp/qpnp-pbs.h
Normal file
@@ -0,0 +1,32 @@
|
||||
/* 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
|
Reference in New Issue
Block a user