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
This commit is contained in:
Tudor Ambarus 2024-11-11 13:36:09 +02:00 • committed by Pratyush Yadav
commit 5be9a36c44