mtd: spi-nor: mark the flash name as obsolete
authorTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 15 Dec 2023 08:21:36 +0000 (10:21 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Dec 2023 02:43:12 +0000 (04:43 +0200)
The flash name is unreliable as we saw flash ID collisions. Mark the
name as obsolete.

Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20231215082138.16063-3-tudor.ambarus@linaro.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/core.h

index 29ed67725b18e11a9aa852f9c2075cde20348501..d36c0e0729548b79970d713c391ceeea47911bfc 100644 (file)
@@ -465,7 +465,7 @@ struct spi_nor_id {
  * struct flash_info - SPI NOR flash_info entry.
  * @id:   pointer to struct spi_nor_id or NULL, which means "no ID" (mostly
  *        older chips).
- * @name: the name of the flash.
+ * @name: (obsolete) the name of the flash. Do not set it for new additions.
  * @size:           the size of the flash in bytes.
  * @sector_size:    (optional) the size listed here is what works with
  *                  SPINOR_OP_SE, which isn't necessarily called a "sector" by