diff options
author | Tudor Ambarus <[email protected]> | 2022-07-25 12:25:01 +0300 |
---|---|---|
committer | Tudor Ambarus <[email protected]> | 2022-07-28 05:11:56 +0300 |
commit | 47c6f8a67f2ce1b95202c16fa126411d6f5c7d5c (patch) | |
tree | 39d89d3ee8fb85b9b6ae34f15029210e10c97e83 /lib/memory-notifier-error-inject.c | |
parent | aa5d980a144cd0bf717eb16609c29ff276f8bd47 (diff) |
mtd: spi-nor: Do not change nor->addr_nbytes at SFDP parsing time
At the SFDP parsing time we should not change members of struct spi_nor,
but instead fill members of struct spi_nor_flash_parameters which could
later on be used by callers. The caller will then decide if SFDP params
should be used and more importantly when they should be used. Clean the
code flow and don't initialize nor->addr_nbytes at SFDP parsing time.
Signed-off-by: Tudor Ambarus <[email protected]>
Tested-by: Takahiro Kuwano <[email protected]>
Reviewed-by: Michael Walle <[email protected]>
Reviewed-by: Pratyush Yadav <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions