Re: [PATCH] mtd: spi-nor: spansion: Rename method to cypress_nor_get_page_size

From: Michael Walle
Date: Tue Apr 18 2023 - 05:30:01 EST


Am 2023-04-05 08:04, schrieb Tudor Ambarus:
The method queries SPINOR_REG_CYPRESS_CFR3V to determine the page size.
Rename the method accordingly, s/set/get.

I'm not sure about this one. There is also a
cypress_nor_set_addr_mode_nbytes() which queries the flash and
set the params->addr_nbytes and params->addr_mode_nbytes.

cypress_nor_set_page_size() also queries the flash and set
params->page_size.

Secondly, if this function is called get_page_size() I'd assume it
doesn't modify anything. But thats not true.

-michael