summaryrefslogtreecommitdiff
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLee Jones <lee@kernel.org>2024-07-04 17:07:34 +0100
committerLee Jones <lee@kernel.org>2024-07-04 17:07:34 +0100
commitf1c6a7e0f07f54718f8cbf9f30ecd2cca9df7334 (patch)
treeafe9e53e162c3cf00fb7352cc05cccb494d466f8 /include/linux/mfd
parent2a2ca717cee531788a0e0cbbe71bd0fea5038ff1 (diff)
parent35d6b98c625867209bc47df99cf03edf4280799f (diff)
Merge branch 'ib-mfd-soc-samsung-6.11' into ibs-for-mfd-merged
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/syscon.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h
index c315903f6dab..aad9c6b50463 100644
--- a/include/linux/mfd/syscon.h
+++ b/include/linux/mfd/syscon.h
@@ -28,6 +28,8 @@ struct regmap *syscon_regmap_lookup_by_phandle_args(struct device_node *np,
unsigned int *out_args);
struct regmap *syscon_regmap_lookup_by_phandle_optional(struct device_node *np,
const char *property);
+int of_syscon_register_regmap(struct device_node *np,
+ struct regmap *regmap);
#else
static inline struct regmap *device_node_to_regmap(struct device_node *np)
{
@@ -67,6 +69,12 @@ static inline struct regmap *syscon_regmap_lookup_by_phandle_optional(
return NULL;
}
+static inline int of_syscon_register_regmap(struct device_node *np,
+ struct regmap *regmap)
+{
+ return -EOPNOTSUPP;
+}
+
#endif
#endif /* __LINUX_MFD_SYSCON_H__ */