mtd: spi-nor: Fix comment of spi_nor_find_best_erase_type()
authorAlexander Sverdlin <alexander.sverdlin@nokia.com>
Tue, 19 Mar 2019 16:57:13 +0000 (16:57 +0000)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 21 Mar 2019 16:24:32 +0000 (17:24 +0100)
Erase types are sorted *smallest* type first, refer to
spi_nor_sort_erase_mask().

Signed-off-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/spi-nor/spi-nor.c

index 028b21abee0da5dc4d7fb460e67ce4ba6aad686a..cbb0965f85ca4c86e1a6f56d44ae9567b67d96b9 100644 (file)
@@ -744,7 +744,7 @@ spi_nor_find_best_erase_type(const struct spi_nor_erase_map *map,
        u8 erase_mask = region->offset & SNOR_ERASE_TYPE_MASK;
 
        /*
-        * Erase types are ordered by size, with the biggest erase type at
+        * Erase types are ordered by size, with the smallest erase type at
         * index 0.
         */
        for (i = SNOR_ERASE_TYPE_MAX - 1; i >= 0; i--) {