diff options
author | Alexander Sverdlin <alexander.sverdlin@nokia.com> | 2019-03-19 17:57:13 +0100 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-03-21 17:24:32 +0100 |
commit | 706707341bef5b076e7c271a2dab7e6cd6af7902 (patch) | |
tree | cb0d2a2f366285c5c9bc62cc147d7ba3896d2664 /drivers/mtd | |
parent | mtd: spi-nor: Print all JEDEC ID bytes on error (diff) | |
download | linux-706707341bef5b076e7c271a2dab7e6cd6af7902.tar.xz linux-706707341bef5b076e7c271a2dab7e6cd6af7902.zip |
mtd: spi-nor: Fix comment of spi_nor_find_best_erase_type()
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>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi-nor/spi-nor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c index 028b21abee0d..cbb0965f85ca 100644 --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c @@ -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--) { |