summaryrefslogtreecommitdiffstats
path: root/include/linux/reset.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-02-21 16:25:55 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2019-03-20 11:18:53 +0100
commit22815f1825e4c50314e7084ca375f7368704fdd4 (patch)
tree8024963b4f3f1a794b6aea2c76b5cb74903f89cf /include/linux/reset.h
parentf31d5c24fb2ea6fcfa4d300886eb87b662fbc0da (diff)
downloadlinux-22815f1825e4c50314e7084ca375f7368704fdd4.tar.gz
linux-22815f1825e4c50314e7084ca375f7368704fdd4.tar.bz2
linux-22815f1825e4c50314e7084ca375f7368704fdd4.zip
reset: Add acquire/release support for arrays
Add implementations that apply acquire and release operations to all reset controls part of a reset control array. Signed-off-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'include/linux/reset.h')
-rw-r--r--include/linux/reset.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h
index a01b32bf51d4..95d555c2130a 100644
--- a/include/linux/reset.h
+++ b/include/linux/reset.h
@@ -471,6 +471,12 @@ of_reset_control_array_get_exclusive(struct device_node *node)
}
static inline struct reset_control *
+of_reset_control_array_get_exclusive_released(struct device_node *node)
+{
+ return of_reset_control_array_get(node, false, false, false);
+}
+
+static inline struct reset_control *
of_reset_control_array_get_shared(struct device_node *node)
{
return of_reset_control_array_get(node, true, false, true);