[PATCH v2 2/3] mtd: spi-nor: sfdp: Rename BFPT_DWORD() macro to SFDP_DWORD()
Pratyush Yadav
pratyush at kernel.org
Mon Dec 26 06:08:45 PST 2022
On 26/12/22 01:01PM, tkuw584924 at gmail.com wrote:
> From: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
>
> 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 at linaro.org>
> Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano at infineon.com>
Reviewed-by: Pratyush Yadav <pratyush at kernel.org>
--
Regards,
Pratyush Yadav
More information about the linux-mtd
mailing list