diff mbox series

[U-Boot,PATVH,v7,03/14] regmap: Add documentation

Message ID 20180921075106.28566-3-mario.six@gdsys.cc
State Changes Requested
Delegated to: Anatolij Gustschin
Headers show
Series [U-Boot,PATVH,v7,01/14] test: regmap: Increase size of syscon0 memory | expand

Commit Message

Mario Six Sept. 21, 2018, 7:50 a.m. UTC
Document the regmap_alloc() function.

Reviewed-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Mario Six <mario.six@gdsys.cc>

---

v6 -> v7:
No changes

v5 -> v6:
No changes

v4 -> v5:
No changes

v3 -> v4:
No changes

v2 -> v3:
New in v3

---
 drivers/core/regmap.c | 6 ++++++
 1 file changed, 6 insertions(+)

--
2.16.4
diff mbox series

Patch

diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c
index 8e5c3bcf61..77f6f520a0 100644
--- a/drivers/core/regmap.c
+++ b/drivers/core/regmap.c
@@ -17,6 +17,12 @@ 

 DECLARE_GLOBAL_DATA_PTR;

+/**
+ * regmap_alloc() - Allocate a regmap with a given number of ranges.
+ *
+ * @count: Number of ranges to be allocated for the regmap.
+ * Return: A pointer to the newly allocated regmap, or NULL on error.
+ */
 static struct regmap *regmap_alloc(int count)
 {
 	struct regmap *map;