Re: [PATCH 2/5] mtd: spi-nor: Use nor->params
From: Boris Brezillon
Date: Sun Aug 25 2019 - 07:31:53 EST
On Fri, 23 Aug 2019 15:53:37 +0000
<Tudor.Ambarus@xxxxxxxxxxxxx> wrote:
> From: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>
>
> The Flash parameters and settings are now stored in 'struct spi_nor'.
> Use this instead of the stack allocated params.
>
> Few functions stop passing pointer to params, as they can get it from
> 'struct spi_nor'. spi_nor_parse_sfdp() and children will keep passing
> pointer to params because of the roll-back mechanism: in case the
> parsing of SFDP fails, the legacy flash parameter and settings will be
> restored.
>
> Zeroizing params is no longer needed because all SPI NOR users kzalloc
^ Zeroing
With this fixed, you can add
Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx>
> 'struct spi_nor'.
>
> Signed-off-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx>
> ---