mtd: spi-nor: sfdp: Rename BFPT_DWORD() macro to SFDP_DWORD()
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Mon, 26 Dec 2022 04:01:59 +0000 (13:01 +0900)
committerTudor Ambarus <tudor.ambarus@linaro.org>
Mon, 26 Dec 2022 07:47:04 +0000 (09:47 +0200)
commit86d4cdf88c81778bb4cd5c4bd7f8a6c64e69491f
tree882925f71d66c262723d0b65d92b6b7bbeca8bf4
parentad9679f3811899fd1c21dc7bdd715e8e1cfb46b9
mtd: spi-nor: sfdp: Rename BFPT_DWORD() macro to SFDP_DWORD()

BFPT_DWORD() converts 1-based indexing to 0-based indexing for C arrays,
and is used in BFPT parse. Per JESD216F.02, the conversion is applicable
to other parameter tables than BFPT. This patch renames the macro to
SFDP_DWORD() so that we can use it for other parameter tables than BFPT.

Suggested-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/e42feac840fe3a31187419e91b2d514d9f259d15.1672026365.git.Takahiro.Kuwano@infineon.com
drivers/mtd/spi-nor/issi.c
drivers/mtd/spi-nor/macronix.c
drivers/mtd/spi-nor/sfdp.c
drivers/mtd/spi-nor/sfdp.h