]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: spi-nor: simplify spi_nor_get_flash_info()
authorMichael Walle <mwalle@kernel.org>
Mon, 3 Jun 2024 13:40:55 +0000 (15:40 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Tue, 18 Jun 2024 09:42:19 +0000 (11:42 +0200)
commite159079a8be0222cf95909ed35eace0d6b2d12bf
tree39b4359fee6d2a302442a6e2c1cb06821d7cd737
parent2d95d13248446355fec961ef96703e552b75fe52
mtd: spi-nor: simplify spi_nor_get_flash_info()

Rework spi_nor_get_flash_info() to make it look more straight forward
and esp. don't return early. The latter is a preparation to check for
deprecated flashes.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20240603134055.1859863-1-mwalle@kernel.org
drivers/mtd/spi-nor/core.c