aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Siemsen <ralph.siemsen@linaro.org>2022-06-24 11:19:15 -0400
committerTom Rini <trini@konsulko.com>2022-07-08 09:06:57 -0400
commit61ff79897e44051d9c69e4ce9b7f9abd4bb602f3 (patch)
treed2928d637ea61475219b8a1e82f9a379718421e0
parente63b8efaea28cbfa76a4e30a13bb6bc2d23945bd (diff)
downloadu-boot-61ff79897e44051d9c69e4ce9b7f9abd4bb602f3.zip
u-boot-61ff79897e44051d9c69e4ce9b7f9abd4bb602f3.tar.gz
u-boot-61ff79897e44051d9c69e4ce9b7f9abd4bb602f3.tar.bz2
regmap: fix some comments
Correct spelling and copy/paste errors in comments. Fixes 1c4db59d9b ("regmap: Add support for regmap fields") Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--include/regmap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/regmap.h b/include/regmap.h
index 8216de0..e81a360 100644
--- a/include/regmap.h
+++ b/include/regmap.h
@@ -460,7 +460,7 @@ struct reg_field {
struct regmap_field;
/**
- * REG_FIELD() - A convenient way to initialize a 'struct reg_feild'.
+ * REG_FIELD() - A convenient way to initialize a 'struct reg_field'.
*
* @_reg: Offset of the register within the regmap bank
* @_lsb: lsb of the register field.
@@ -519,9 +519,9 @@ void devm_regmap_field_free(struct udevice *dev, struct regmap_field *field);
int regmap_field_write(struct regmap_field *field, unsigned int val);
/**
- * regmap_read() - Read a 32-bit value from a regmap
+ * regmap_field_read() - Read a 32-bit value from a regmap
*
- * @field: Regmap field to write to
+ * @field: Regmap field to read from
* @valp: Pointer to the buffer to receive the data read from the regmap
* field
*