Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70670734 authored by Alexander Sverdlin's avatar Alexander Sverdlin Committed by Miquel Raynal
Browse files

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: default avatarAlexander Sverdlin <alexander.sverdlin@nokia.com>
Reviewed-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent 3ddc8adb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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--) {