File Index
Files and directories
Sign in
FILE

qcom-pbs.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/soc/qcom/qcom-pbs.h C
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
 4 */
 5
 6#ifndef _QCOM_PBS_H
 7#define _QCOM_PBS_H
 8
 9#include <linux/errno.h>
10#include <linux/types.h>
11
12struct device_node;
13struct pbs_dev;
14
15#if IS_ENABLED(CONFIG_QCOM_PBS)
16int qcom_pbs_trigger_event(struct pbs_dev *pbs, u8 bitmap);
17struct pbs_dev *get_pbs_client_device(struct device *client_dev);
18#else
19static inline int qcom_pbs_trigger_event(struct pbs_dev *pbs, u8 bitmap)
20{
21	return -ENODEV;
22}
23
24static inline struct pbs_dev *get_pbs_client_device(struct device *client_dev)
25{
26	return ERR_PTR(-ENODEV);
27}
28#endif
29
30#endif
~/ Read-only file preview.