Browse Source

regmap: Add documentation

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>
Mario Six 6 years ago
parent
commit
9b07609563
1 changed files with 6 additions and 0 deletions
  1. 6 0
      drivers/core/regmap.c

+ 6 - 0
drivers/core/regmap.c

@@ -17,6 +17,12 @@
 
 
 DECLARE_GLOBAL_DATA_PTR;
 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)
 static struct regmap *regmap_alloc(int count)
 {
 {
 	struct regmap *map;
 	struct regmap *map;