summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi-nor/catalyst.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2022-12-15 09:12:33 +0100
committerTudor Ambarus <tudor.ambarus@linaro.org>2023-01-26 19:52:47 +0200
commit59273180299ad264d086135e8199c1b05ea51b69 (patch)
tree2be7c3437564c79e1c481b869a5ea9cab0f44912 /drivers/mtd/spi-nor/catalyst.c
parentca5a16db010018095da35c074397289a5bbcb543 (diff)
mtd: spi-nor: Create macros to define chip IDs and geometries
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 no functional change. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Pratyush Yadav <pratyush@kernel.org> Link: https://lore.kernel.org/r/20221215081241.407098-2-miquel.raynal@bootlin.com Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Diffstat (limited to 'drivers/mtd/spi-nor/catalyst.c')
0 files changed, 0 insertions, 0 deletions