]> git.itanic.dy.fi Git - linux-stable/commit
mtd: spi-nor: default .n_banks to 1
authorMichael Walle <mwalle@kernel.org>
Fri, 8 Sep 2023 10:16:26 +0000 (12:16 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 19 Sep 2023 15:49:54 +0000 (18:49 +0300)
commite255a79162b6fbf3c62f2883ef9ecd66feb10fb6
tree88fd7e69d9f7e7f939652f68f3c5f775bbac792b
parent9983e6da917d7a8e367be05be167b1eeb6c8f120
mtd: spi-nor: default .n_banks to 1

If .n_banks is not set in the flash_info database, the default value
should be 1. This way, we don't have to always set the .n_banks
parameter in flash_info.

Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230807-mtd-flash-info-db-rework-v3-8-e60548861b10@kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h
drivers/mtd/spi-nor/xilinx.c