mtd: spi-nor: otp: fix kerneldoc typos
authorMichael Walle <michael@walle.cc>
Wed, 5 May 2021 20:00:17 +0000 (22:00 +0200)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 26 May 2021 16:17:34 +0000 (21:47 +0530)
Use the correct argument names in the kerneldoc.

Fixes: cad3193fe9d1 ("mtd: spi-nor: implement OTP support for Winbond and similar flashes")
Reported-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
drivers/mtd/spi-nor/otp.c

index fcf38d26034500e6d3eb7b401d90ce1b74f3fa63..61036c716abbffdae956695f1e10687098bb8fcc 100644 (file)
@@ -17,7 +17,7 @@
 /**
  * spi_nor_otp_read_secr() - read OTP data
  * @nor:       pointer to 'struct spi_nor'
- * @from:       offset to read from
+ * @addr:       offset to read from
  * @len:        number of bytes to read
  * @buf:        pointer to dst buffer
  *
@@ -59,7 +59,7 @@ int spi_nor_otp_read_secr(struct spi_nor *nor, loff_t addr, size_t len, u8 *buf)
 /**
  * spi_nor_otp_write_secr() - write OTP data
  * @nor:        pointer to 'struct spi_nor'
- * @to:         offset to write to
+ * @addr:       offset to write to
  * @len:        number of bytes to write
  * @buf:        pointer to src buffer
  *