]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Rewrite rem_bank_len calculation
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 26 Oct 2024 20:16:24 +0000 (22:16 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2024 16:49:47 +0000 (10:49 -0600)
commit003157bd1c2c029abaefb9457965551f305effda
tree1b1b8838d6a785f59a683b05220c82fb00125f87
parenta21cfc4e7c5380fb674989d2a00a9b9b7c42dd8e
mtd: spi-nor: Rewrite rem_bank_len calculation

Rewrite the code to make it clear exactly where the
SNOR_F_HAS_PARALLEL flag leads to *2 and /2 operation
compared to regular code path. No functional change.

Fixes: 5d40b3d384dc ("mtd: spi-nor: Add parallel and stacked memories support")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/mtd/spi/spi-nor-core.c