blob: ca0d426dba51e747241b4d3bddd5049688225088 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* SPDX-License-Identifier: GPL-2.0-only */
/* Copyright (c) 2020, The Linux Foundation. All rights reserved. */
#ifndef _SPMI_PMIC_ARB_H
#define _SPMI_PMIC_ARB_H
#include <linux/device.h>
#include <linux/ioport.h>
#include <linux/types.h>
#if IS_ENABLED(CONFIG_SPMI_MSM_PMIC_ARB)
int spmi_pmic_arb_map_address(const struct device *dev, u32 spmi_address,
struct resource *res_out);
#else
static inline int spmi_pmic_arb_map_address(const struct device *dev,
u32 spmi_address, struct resource *res_out)
{
return -ENODEV;
}
#endif
#endif
|