summaryrefslogtreecommitdiff
path: root/drivers/of/address.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2021-03-18 10:40:32 +0000
committerRob Herring <robh@kernel.org>2021-03-23 15:27:52 -0600
commit45f2933b81ccb6a08261df8504f4470da30697f8 (patch)
treee8aa6a88f7526739194400840ae51a812e042bf5 /drivers/of/address.c
parent3915fed9236566d364fecce863fcc922134615b7 (diff)
of: address: Provide descriptions for 'of_address_to_resource's params
Fixes the following W=1 kernel build warning(s): drivers/of/address.c:868: warning: Function parameter or member 'dev' not described in 'of_address_to_resource' drivers/of/address.c:868: warning: Function parameter or member 'index' not described in 'of_address_to_resource' drivers/of/address.c:868: warning: Function parameter or member 'r' not described in 'of_address_to_resource' Cc: Rob Herring <robh+dt@kernel.org> Cc: Frank Rowand <frowand.list@gmail.com> Cc: devicetree@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20210318104036.3175910-7-lee.jones@linaro.org
Diffstat (limited to 'drivers/of/address.c')
-rw-r--r--drivers/of/address.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/of/address.c b/drivers/of/address.c
index 73ddf2540f3f..7de41abe7153 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -857,6 +857,9 @@ static int __of_address_to_resource(struct device_node *dev,
/**
* of_address_to_resource - Translate device tree address and return as resource
+ * @dev: Caller's Device Node
+ * @index: Index into the array
+ * @r: Pointer to resource array
*
* 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