mtd: spi-nor: spansion: Make CFRx reg fields generic
authorTudor Ambarus <tudor.ambarus@linaro.org>
Tue, 10 Jan 2023 16:47:03 +0000 (18:47 +0200)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Thu, 26 Jan 2023 17:41:59 +0000 (19:41 +0200)
commitca5a16db010018095da35c074397289a5bbcb543
tree6cfb70302521a4db1d38feb82f5bc09915326d56
parent3f592a869f87723314f0cb1ac232bd3bf8245be8
mtd: spi-nor: spansion: Make CFRx reg fields generic

Cypress defines two flavors of configuration registers, volatile and
non volatile, and both use the same bit fields. Rename the bitfields in
the configuration registers so that they can be used for both flavors.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Pratyush Yadav <ptyadav@amazon.de>
Link: https://lore.kernel.org/linux-mtd/20230110164703.83413-2-tudor.ambarus@linaro.org
drivers/mtd/spi-nor/spansion.c