[U-Boot] [PATCH v3 03/13] regmap: Add documentation
Mario Six
mario.six at gdsys.cc
Tue Jul 31 10:01:00 UTC 2018
Document the regmap_alloc() function.
Signed-off-by: Mario Six <mario.six at gdsys.cc>
---
v2 -> v3:
New in v3
---
drivers/core/regmap.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c
index 8e5c3bcf61b..77f6f520a06 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;
--
2.11.0
More information about the U-Boot
mailing list