]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Fix index value for SCCR dwords
authorTakahiro Kuwano <Takahiro.Kuwano@infineon.com>
Mon, 12 Sep 2022 05:25:40 +0000 (14:25 +0900)
committerJagan Teki <jagan@edgeble.ai>
Sun, 23 Oct 2022 05:22:16 +0000 (10:52 +0530)
commite28d3ead7258ce1deb87003d0064b16ec50abc81
treeebb9959d0c20848abb0b9e0998deefa72e15361a
parent7a4b6f8cf72e3566fd67ea840d248d8a34b8083e
mtd: spi-nor-core: Fix index value for SCCR dwords

Array index for SCCR 22th DWORD should be 21.

Fixes: bebdc237507c ("mtd: spi-nor: Parse SFDP SCCR Map")
Signed-off-by: Takahiro Kuwano <Takahiro.Kuwano@infineon.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/mtd/spi/spi-nor-core.c