diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-03-31 09:52:28 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-04 12:12:13 -0500 |
commit | 7be5e675c86d6c473220a0c9e9420a1fdb0d04da (patch) | |
tree | 47b3679881430cc422785909ad27b61e3058957f /drivers/of | |
parent | dc8ea9204b242cd93e63585396ac7d13f622802d (diff) |
of: address: Document return value of of_address_to_resource()
Add the missing return value documentation to the linuxdoc comment block
for the of_address_to_resource() function.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/61ffcb5e87511dfa21af169efd04806101c48b8a.1680248888.git.geert+renesas@glider.be
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/address.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c index 4c0b169ef9bf..3fda1f33e09c 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -879,6 +879,8 @@ static int __of_address_to_resource(struct device_node *dev, int index, int bar_ * @index: Index into the array * @r: Pointer to resource array * + * Returns -EINVAL if the range cannot be converted to resource. + * * Note that if your address is a PIO address, the conversion will fail if * the physical address can't be internally converted to an IO token with * pci_address_to_pio(), that is because it's either called too early or it |