aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Six2018-10-04 02:00:42 -0500
committerSimon Glass2018-11-14 11:16:27 -0600
commit9b076095636b7def91ed6fd3f94383155057e962 (patch)
tree818845a7a5b729423b8f673a758f28281cca170b /drivers
parent604b6696ed147bbd0cd9c7b2f319e7dd5096ca14 (diff)
downloadu-boot-9b076095636b7def91ed6fd3f94383155057e962.tar.gz
u-boot-9b076095636b7def91ed6fd3f94383155057e962.tar.xz
u-boot-9b076095636b7def91ed6fd3f94383155057e962.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/regmap.c6
1 files changed, 6 insertions, 0 deletions
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 @@
17 17
18DECLARE_GLOBAL_DATA_PTR; 18DECLARE_GLOBAL_DATA_PTR;
19 19
20/**
21 * regmap_alloc() - Allocate a regmap with a given number of ranges.
22 *
23 * @count: Number of ranges to be allocated for the regmap.
24 * Return: A pointer to the newly allocated regmap, or NULL on error.
25 */
20static struct regmap *regmap_alloc(int count) 26static struct regmap *regmap_alloc(int count)
21{ 27{
22 struct regmap *map; 28 struct regmap *map;