diff options
author | Thierry Reding <treding@nvidia.com> | 2019-02-21 16:25:55 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2019-03-20 11:18:53 +0100 |
commit | 22815f1825e4c50314e7084ca375f7368704fdd4 (patch) | |
tree | 8024963b4f3f1a794b6aea2c76b5cb74903f89cf /include/linux/reset.h | |
parent | f31d5c24fb2ea6fcfa4d300886eb87b662fbc0da (diff) | |
download | lwn-22815f1825e4c50314e7084ca375f7368704fdd4.tar.gz lwn-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.h | 6 |
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); |