[PATCH v1 5/6] mtd: spi-nor: simplify spi_nor_get_flash_info()

Pratyush Yadav pratyush at kernel.org
Wed Apr 17 07:18:55 PDT 2024


Hi,

On Fri, Apr 12 2024, Michael Walle wrote:

> 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.

Looks much nicer now! Though I did spend around 15 minutes wondering if
it can be made even simpler, but I can't come up with anything better.

Reviewed-by: Pratyush Yadav <pratyush at kernel.org>

[...]

-- 
Regards,
Pratyush Yadav



More information about the linux-mtd mailing list