Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: spi-nor: mark the flash name as obsolete

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>

+1 -1
+1 -1
drivers/mtd/spi-nor/core.h
··· 465 465 * struct flash_info - SPI NOR flash_info entry. 466 466 * @id: pointer to struct spi_nor_id or NULL, which means "no ID" (mostly 467 467 * older chips). 468 - * @name: the name of the flash. 468 + * @name: (obsolete) the name of the flash. Do not set it for new additions. 469 469 * @size: the size of the flash in bytes. 470 470 * @sector_size: (optional) the size listed here is what works with 471 471 * SPINOR_OP_SE, which isn't necessarily called a "sector" by