]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mtd: spi-nor: macronix: use nor->addr_nbytes
authorTudor Ambarus <tudor.ambarus@linaro.org>
Mon, 11 Nov 2024 11:36:09 +0000 (13:36 +0200)
committerPratyush Yadav <pratyush@kernel.org>
Fri, 6 Dec 2024 15:49:32 +0000 (15:49 +0000)
commit5be9a36c44cd7e6990631957df523a5059b26bcd
tree7b25c381241d3564565738f37f2fbb4ec25afb95
parent792caa4a4baaa9bc3fb59052b30cee08e8bc801d
mtd: spi-nor: macronix: use nor->addr_nbytes

Use the nor->addr_nbytes set by the core, we shouldn't use
magic numbers or states that are not tracked by the core.

Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Acked-by: Pratyush Yadav <pratyush@kernel.org>
Signed-off-by: Pratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/r/20241111113609.12093-1-tudor.ambarus@linaro.org
drivers/mtd/spi-nor/macronix.c