Skip to contentSkip to conversation

mtd: spi-nor: sfdp: fix missing kernel-doc

PATCH Applied Michael Walle 2 participants 3 messages Oct 15 – Oct 16

Subsystems (2)
lore
Share & tools
lore

Michael Walle

author maintainer
#0 lore raw

PATCH 1/1 mtd: spi-nor: sfdp: fix missing kernel-doc

Commit 69d9d7dabbeb ("mtd: spi-nor: move spi_nor_post_bfpt_fixups() into sfdp") added the kernel-doc but missed one description for bfpt. Fix it.

While at it, also add documentation for the return value.

Fixes 69d9d7dabbeb ("mtd: spi-nor: move spi_nor_post_bfpt_fixups() into sfdp")
---
 drivers/mtd/spi-nor/sfdp.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/mtd/spi-nor/sfdp.c +3 -0
index beb0f5c66212..818c7d4d69d4 100644
@@ -403,9 +403,12 @@ static void spi_nor_regions_sort_erase_types(struct spi_nor_erase_map *map)
  * @nor:	pointer to a 'struct spi_nor'
  * @bfpt_header:	pointer to the 'struct sfdp_parameter_header' describing
  *			the Basic Flash Parameter Table length and version
+ * @bfpt:	pointer to the 'struct sfdp_bfpt' to be fixed up
  *
  * Used to tweak various flash parameters when information provided by the SFDP
  * tables are wrong.
+ *
+ * Return: 0 on success, -errno otherwise.
  */
 static int spi_nor_post_bfpt_fixups(struct spi_nor *nor,
 				    const struct sfdp_parameter_header *bfpt_header,
Signature · 1 line
2.47.3
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Michael Walle

Commit 69d9d7dabbeb ("mtd: spi-nor: move spi_nor_post_bfpt_fixups() into sfdp") added the kernel-doc but missed one description for bfpt. Fix it.

While at it, also add documentation for the return value.

Fixes 69d9d7dabbeb ("mtd: spi-nor: move spi_nor_post_bfpt_fixups() into sfdp")
author maintainer Applied
#2 lore raw
In reply to Michael Walle
Quoted 4 lines · Michael Walle

Commit 69d9d7dabbeb ("mtd: spi-nor: move spi_nor_post_bfpt_fixups() into sfdp") added the kernel-doc but missed one description for bfpt. Fix it.

While at it, also add documentation for the return value.

Applied, thanks!

[1/1] mtd: spi-nor: sfdp: fix missing kernel-doc

      commit: 7dc9a4e7b9fcee871d021765c90943c4bab91474

Best regards,

Signature · 1 line
Michael Walle <[email protected]>