diff mbox series

regmap: fix some comments

Message ID 20220624151915.1463994-1-ralph.siemsen@linaro.org
State Accepted
Commit cc5dfdee6b8a2c558f5c52f11004e26eb55fd830
Headers show
Series regmap: fix some comments | expand

Commit Message

Ralph Siemsen June 24, 2022, 3:19 p.m. UTC
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>
---
 include/regmap.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Simon Glass June 30, 2022, 10:06 a.m. UTC | #1
On Fri, 24 Jun 2022 at 09:20, Ralph Siemsen <ralph.siemsen@linaro.org> wrote:
>
> 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>
> ---
>  include/regmap.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini July 8, 2022, 4:39 p.m. UTC | #2
On Fri, Jun 24, 2022 at 11:19:15AM -0400, Ralph Siemsen wrote:

> 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>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/include/regmap.h b/include/regmap.h
index 8216de015d..e81a3602ae 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
  *