diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-11-20 17:26:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 10:22:43 +0300 |
commit | 7ef078e942c483e1577cf31a2c1c76b60f1ac176 (patch) | |
tree | 7861e7f3cc90ada630447089ad8939aecbaa52bf /drivers/reset | |
parent | 6b5d1613f34cf5ccc1fbc0ba720ae40455e32f5f (diff) | |
download | linux-7ef078e942c483e1577cf31a2c1c76b60f1ac176.tar.xz |
reset: Fix {of,devm}_reset_control_array_get kerneldoc return types
commit 723c0011c7f6992f57e2c629fa9c89141acc115f upstream.
of_reset_control_array_get() and devm_reset_control_array_get() return
struct reset_control pointers, not internal struct reset_control_array
pointers, just like all other reset control API calls.
Correct the kerneldoc to match the code.
Fixes: 17c82e206d2a3cd8 ("reset: Add APIs to manage array of resets")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c index f343bd814d32..76c0dc7f165d 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -861,8 +861,7 @@ static int of_reset_control_get_count(struct device_node *node) * @acquired: only one reset control may be acquired for a given controller * and ID * - * Returns pointer to allocated reset_control_array on success or - * error on failure + * Returns pointer to allocated reset_control on success or error on failure */ struct reset_control * of_reset_control_array_get(struct device_node *np, bool shared, bool optional, @@ -915,8 +914,7 @@ EXPORT_SYMBOL_GPL(of_reset_control_array_get); * that just have to be asserted or deasserted, without any * requirements on the order. * - * Returns pointer to allocated reset_control_array on success or - * error on failure + * Returns pointer to allocated reset_control on success or error on failure */ struct reset_control * devm_reset_control_array_get(struct device *dev, bool shared, bool optional) |