Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / include / linux / mfd / altera-sysmgr.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2018-2019 Intel Corporation
4  * Copyright (C) 2012 Freescale Semiconductor, Inc.
5  * Copyright (C) 2012 Linaro Ltd.
6  */
7
8 #ifndef __LINUX_MFD_ALTERA_SYSMGR_H__
9 #define __LINUX_MFD_ALTERA_SYSMGR_H__
10
11 #include <linux/err.h>
12 #include <linux/errno.h>
13 #include <linux/firmware/intel/stratix10-smc.h>
14
15 struct device_node;
16
17 #ifdef CONFIG_MFD_ALTERA_SYSMGR
18 struct regmap *altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
19                                                     const char *property);
20 #else
21 static inline struct regmap *
22 altr_sysmgr_regmap_lookup_by_phandle(struct device_node *np,
23                                      const char *property)
24 {
25         return ERR_PTR(-ENOTSUPP);
26 }
27 #endif
28
29 #endif /* __LINUX_MFD_ALTERA_SYSMGR_H__ */