mtd: spi-nor: core: Update comment about the default flash parameters
authorTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 15 Mar 2021 05:56:34 +0000 (07:56 +0200)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 15 Mar 2021 16:04:59 +0000 (18:04 +0200)
s/legacy/default. spi_nor_info_init_params initializes some default
flash parameters and settings that can be overwritten when parsing
SFDP, or by fixup hooks. There's nothing legacy about them, they are
just some default settings, if not otherwise discovered or specified.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20210315055634.17332-1-tudor.ambarus@microchip.com
drivers/mtd/spi-nor/core.c

index d5dbbad..fbc3415 100644 (file)
@@ -2914,7 +2914,7 @@ static void spi_nor_info_init_params(struct spi_nor *nor)
        struct device_node *np = spi_nor_get_flash_node(nor);
        u8 i, erase_mask;
 
-       /* Initialize legacy flash parameters and settings. */
+       /* Initialize default flash parameters and settings. */
        params->quad_enable = spi_nor_sr2_bit1_quad_enable;
        params->set_4byte_addr_mode = spansion_set_4byte_addr_mode;
        params->setup = spi_nor_default_setup;