From: Mario Six Date: Thu, 4 Oct 2018 07:00:42 +0000 (+0200) Subject: regmap: Add documentation X-Git-Tag: v2019.01-rc1~33^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b076095636b7def91ed6fd3f94383155057e962;p=platform%2Fkernel%2Fu-boot.git regmap: Add documentation Document the regmap_alloc() function. Reviewed-by: Anatolij Gustschin Reviewed-by: Simon Glass Signed-off-by: Mario Six --- diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 8e5c3bc..77f6f52 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;