[PATCH v3 1/9] mtd: spi-nor: Create macros to define chip IDs and geometries

Tudor Ambarus tudor.ambarus at linaro.org
Tue Jan 31 00:58:54 PST 2023



On 15.12.2022 10:12, Miquel Raynal wrote:
> The INFO() macro defines an ID array and a couple of geometry
> properties. Right now all its lines are duplicated twice because of the
> INFO6() macro (for extended IDs) and soon as well we will need to add a
> geometry parameter to include the number of banks.
> 
> In order to limit the code duplication, let's create a number of
> intermediate macros which will facilitate defining high-level INFOX()
> macros.
> 
> There is not functional change.
s/not/no and applied to spi-nor/next.

Thanks!
> 
> Signed-off-by: Miquel Raynal<miquel.raynal at bootlin.com>
> Reviewed-by: Pratyush Yadav<pratyush at kernel.org>
> ---
>   drivers/mtd/spi-nor/core.h | 43 ++++++++++++++++++--------------------
>   1 file changed, 20 insertions(+), 23 deletions(-)



More information about the linux-mtd mailing list