]> git.itanic.dy.fi Git - linux-stable/commit
mtd: spi-nor: winbond: sort flash_info entries
authorMichael Walle <mwalle@kernel.org>
Fri, 8 Sep 2023 10:16:57 +0000 (12:16 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Sep 2023 15:59:22 +0000 (18:59 +0300)
commitd3b5ea3cc5bacd66a251c0c7394b5d1f82de0f6b
tree689a49ad60b91e3c4dc96d5eff7b944086fbeacf
parent1de410815768295c8ce3c0289d7fc29762e3ca76
mtd: spi-nor: winbond: sort flash_info entries

The flash ID is the new primary key into our database. Sort the entry by
it. Keep the most specific ones first, because there might be ID
collisions between shorter and longer ones.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-39-e60548861b10@kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/winbond.c